Selaa lähdekoodia

use rowxpr

Former-commit-id: bea0b71abd5ad30d2562986ab0152faef67aa0e1
Alec Jacobson 9 vuotta sitten
vanhempi
commit
af8702d45a
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  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();