소스 검색

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