Browse Source

Minor bug fix: see https://github.com/libigl/libigl-unit-tests/issues/8

Former-commit-id: 7e651543c4b6b50b9179598768f951cff51da1a4
Qingnan Zhou 8 years ago
parent
commit
a1eb6116cc

+ 1 - 1
include/igl/point_simplex_squared_distance.cpp

@@ -29,7 +29,7 @@ IGL_INLINE void igl::point_simplex_squared_distance(
   const typename DerivedEle::Index primitive,
   Derivedsqr_d & sqr_d,
   Eigen::MatrixBase<Derivedc> & c,
-  Eigen::MatrixBase<Derivedb> & bary)
+  Eigen::PlainObjectBase<Derivedb> & bary)
 {
   typedef typename Derivedp::Scalar Scalar;
   typedef typename Eigen::Matrix<Scalar,1,DIM> Vector;

+ 1 - 1
include/igl/point_simplex_squared_distance.h

@@ -64,7 +64,7 @@ namespace igl
     const typename DerivedEle::Index i,
     Derivedsqr_d & sqr_d,
     Eigen::MatrixBase<Derivedc> & c,
-    Eigen::MatrixBase<Derivedb> & b);
+    Eigen::PlainObjectBase<Derivedb> & b);
 }
 #ifndef IGL_STATIC_LIBRARY
 #  include "point_simplex_squared_distance.cpp"