浏览代码

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

Former-commit-id: 7e651543c4b6b50b9179598768f951cff51da1a4
Qingnan Zhou 8 年之前
父节点
当前提交
a1eb6116cc
共有 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,
   const typename DerivedEle::Index primitive,
   Derivedsqr_d & sqr_d,
   Derivedsqr_d & sqr_d,
   Eigen::MatrixBase<Derivedc> & c,
   Eigen::MatrixBase<Derivedc> & c,
-  Eigen::MatrixBase<Derivedb> & bary)
+  Eigen::PlainObjectBase<Derivedb> & bary)
 {
 {
   typedef typename Derivedp::Scalar Scalar;
   typedef typename Derivedp::Scalar Scalar;
   typedef typename Eigen::Matrix<Scalar,1,DIM> Vector;
   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,
     const typename DerivedEle::Index i,
     Derivedsqr_d & sqr_d,
     Derivedsqr_d & sqr_d,
     Eigen::MatrixBase<Derivedc> & c,
     Eigen::MatrixBase<Derivedc> & c,
-    Eigen::MatrixBase<Derivedb> & b);
+    Eigen::PlainObjectBase<Derivedb> & b);
 }
 }
 #ifndef IGL_STATIC_LIBRARY
 #ifndef IGL_STATIC_LIBRARY
 #  include "point_simplex_squared_distance.cpp"
 #  include "point_simplex_squared_distance.cpp"