Переглянути джерело

Update per_vertex_point_to_plane_quadrics.cpp

change boundary weight from length to length squared so that it has the same unit as face_quadric
Hsueh-Ti Derek Liu 5 роки тому
батько
коміт
a8a1216363
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      include/igl/per_vertex_point_to_plane_quadrics.cpp

+ 1 - 1
include/igl/per_vertex_point_to_plane_quadrics.cpp

@@ -143,7 +143,7 @@ IGL_INLINE void igl::per_vertex_point_to_plane_quadrics(
       assert(N.rows() == ev.size()-2);
       Eigen::MatrixXd S(N.rows()+1,ev.size());
       S<<ev,N;
-      Quadric boundary_edge_quadric = subspace_quadric(p,S,length);
+      Quadric boundary_edge_quadric = subspace_quadric(p,S,length*length);
       for(int c = 0;c<3;c++)
       {
         if(c != infinite_corner)