Jelajahi Sumber

In point_simplex_squared_distance.h, declare bary and b as PlainObjectBase instead of MatrixBase for Eigen 3.3 and 3.2 compatibility.

Former-commit-id: 36437adef0e4051a6031bed59b02bccf4b8e215a
Yotam Gingold 8 tahun lalu
induk
melakukan
585762dfa7

+ 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"