Эх сурвалжийг харах

[COMMENT]: api is confusing

Former-commit-id: b5155b4f36ddc442aecc9add7cb3401794cbb928
Alec Jacobson 7 жил өмнө
parent
commit
0d35d164e1

+ 2 - 0
include/igl/opengl/ViewerData.h

@@ -103,6 +103,8 @@ public:
   //   E  #E by 2 list of edge indices into P
   //   C  #E|1 by 3 color(s)
   IGL_INLINE void set_edges (const Eigen::MatrixXd& P, const Eigen::MatrixXi& E, const Eigen::MatrixXd& C);
+  // Alec: This is very confusing. Why does add_edges have a different API from
+  // set_edges? 
   IGL_INLINE void add_edges (const Eigen::MatrixXd& P1, const Eigen::MatrixXd& P2, const Eigen::MatrixXd& C);
   IGL_INLINE void add_label (const Eigen::VectorXd& P,  const std::string& str);