Browse Source

consistent type deduction (#1942)

hanxiao 3 years ago
parent
commit
06ee3b5c1f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/igl/doublearea.cpp

+ 1 - 1
include/igl/doublearea.cpp

@@ -219,7 +219,7 @@ IGL_INLINE void igl::doublearea_quad(
   }
 
   // Compute areas
-  Eigen::VectorXd doublearea_tri;
+  Eigen::Matrix<typename DeriveddblA::Scalar, Eigen::Dynamic, 1> doublearea_tri;
   igl::doublearea(V,Ft,doublearea_tri);
 
   dblA.resize(F.rows(),1);