소스 검색

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();