소스 검색

draw_mesh -> set_mesh

Former-commit-id: dd561736b19aab820d79eaebdd39c122aa891765
Alec Jacobson 11 년 전
부모
커밋
45bb343ede
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      include/igl/viewer/Viewer.cpp
  2. 1 1
      include/igl/viewer/Viewer.h

+ 2 - 2
include/igl/viewer/Viewer.cpp

@@ -2135,7 +2135,7 @@ namespace igl
   }
   }
 
 
   // Helpers that draws the most common meshes
   // Helpers that draws the most common meshes
-  void Viewer::draw_mesh(const Eigen::MatrixXd& V, const Eigen::MatrixXi& F)
+  void Viewer::set_mesh(const Eigen::MatrixXd& V, const Eigen::MatrixXi& F)
   {
   {
     using namespace std;
     using namespace std;
     if (data.V.rows() == 0 && data.F.rows() == 0)
     if (data.V.rows() == 0 && data.F.rows() == 0)
@@ -2161,7 +2161,7 @@ namespace igl
         alignCameraCenter();
         alignCameraCenter();
       }
       }
       else
       else
-        cerr << "ERROR (draw_mesh): The new mesh has a different number of vertices/faces. Please clear the mesh before plotting.";
+        cerr << "ERROR (set_mesh): The new mesh has a different number of vertices/faces. Please clear the mesh before plotting.";
     }
     }
     data.dirty |= DIRTY_FACE | DIRTY_POSITION;
     data.dirty |= DIRTY_FACE | DIRTY_POSITION;
   }
   }

+ 1 - 1
include/igl/viewer/Viewer.h

@@ -346,7 +346,7 @@ namespace igl
     void alignCameraCenter(); // Adjust the view to see the entire model
     void alignCameraCenter(); // Adjust the view to see the entire model
 
 
     // Helpers that can draw the most common meshes
     // Helpers that can draw the most common meshes
-    void draw_mesh(const Eigen::MatrixXd& V, const Eigen::MatrixXi& F);
+    void set_mesh(const Eigen::MatrixXd& V, const Eigen::MatrixXi& F);
     void set_normals(const Eigen::MatrixXd& N);
     void set_normals(const Eigen::MatrixXd& N);
     // Set the color of the mesh 
     // Set the color of the mesh 
     //
     //