Преглед изворни кода

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
-  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;
     if (data.V.rows() == 0 && data.F.rows() == 0)
@@ -2161,7 +2161,7 @@ namespace igl
         alignCameraCenter();
       }
       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;
   }

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

@@ -346,7 +346,7 @@ namespace igl
     void alignCameraCenter(); // Adjust the view to see the entire model
 
     // 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);
     // Set the color of the mesh 
     //