浏览代码

use correct types for temporary matrices

Former-commit-id: 9ae1eee2a82401bc4baab35cf467839e7f06a0c2
Janis Born 7 年之前
父节点
当前提交
c7503024f3
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      include/igl/shape_diameter_function.cpp

+ 3 - 3
include/igl/shape_diameter_function.cpp

@@ -157,15 +157,15 @@ IGL_INLINE void igl::shape_diameter_function(
 {
   if (per_face)
   {
-    Eigen::PlainObjectBase<DerivedV> N;
+    DerivedV N;
     igl::per_face_normals(V, F, N);
-    Eigen::PlainObjectBase<DerivedV> P;
+    DerivedV P;
     igl::barycenter(V, F, P);
     return igl::shape_diameter_function(V, F, P, N, num_samples, S);
   }
   else
   {
-    Eigen::PlainObjectBase<DerivedV> N;
+    DerivedV N;
     igl::per_vertex_normals(V, F, N);
     return igl::shape_diameter_function(V, F, V, N, num_samples, S);
   }