浏览代码

use rowxpr

Former-commit-id: bea0b71abd5ad30d2562986ab0152faef67aa0e1
Alec Jacobson 9 年之前
父节点
当前提交
af8702d45a
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      include/igl/internal_angles.cpp

+ 3 - 3
include/igl/internal_angles.cpp

@@ -35,9 +35,9 @@ IGL_INLINE void igl::internal_angles(
     assert(V.cols() == 3 && "If F contains non-triangle facets, V must be 3D");
     K.resize(F.rows(),F.cols());
     auto corner = [](
-      const Eigen::PlainObjectBase<DerivedV>& x, 
-      const Eigen::PlainObjectBase<DerivedV>& y, 
-      const Eigen::PlainObjectBase<DerivedV>& z)
+      const typename DerivedV::ConstRowXpr & x, 
+      const typename DerivedV::ConstRowXpr & y, 
+      const typename DerivedV::ConstRowXpr & z)
     {
       typedef Eigen::Matrix<Scalar,1,3> RowVector3S;
       RowVector3S v1 = (x-y).normalized();