浏览代码

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 年之前
父节点
当前提交
585762dfa7
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      include/igl/point_simplex_squared_distance.cpp
  2. 1 1
      include/igl/point_simplex_squared_distance.h

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