浏览代码

Replaced exterior_edges() to boundary_facets()

Former-commit-id: ba4dc98fa3d233ad448d8624d5405767c813cb3b
stefanbrugger 10 年之前
父节点
当前提交
ffd8941a3c
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. 3 5
      include/igl/outline_ordered.cpp

+ 3 - 5
include/igl/outline_ordered.cpp

@@ -6,7 +6,7 @@
 // v. 2.0. If a copy of the MPL was not distributed with this file, You can 
 // obtain one at http://mozilla.org/MPL/2.0/.
 #include "outline_ordered.h"
-#include "exterior_edges.h"
+#include "igl/boundary_facets.h"
 #include <set>
 
 template <typename DerivedF, typename Index>
@@ -16,10 +16,8 @@ IGL_INLINE void igl::outline_ordered(
 {
   using namespace std;
   using namespace Eigen;
-  // Exterior edges include some non-manifold edges (poor function name). I
-  // suppose `outline_ordered` is not well defined for non-manifold meshes, but
-  // perhaps this should just call `boundary_facets`
-  MatrixXi E = exterior_edges(F);
+  MatrixXi E;
+  boundary_facets(F, E);
 
   set<int> unseen;
   for (int i = 0; i < E.rows(); ++i)