Ver código fonte

conform to style guidelines

Former-commit-id: e8c93b1eaf6f07d34eedc4f5874c1a7fc9be6230
Alec Jacobson 10 anos atrás
pai
commit
1a0644a107
2 arquivos alterados com 11 adições e 11 exclusões
  1. 8 8
      include/igl/outline_ordered.cpp
  2. 3 3
      include/igl/outline_ordered.h

+ 8 - 8
include/igl/outline_ordered.cpp

@@ -1,21 +1,21 @@
 #include "outline_ordered.h"
-
-#include "igl/exterior_edges.h"
+#include "exterior_edges.h"
 #include <set>
 
-using namespace std;
-using namespace Eigen;
-
-template <typename Index>
+template <typename DerivedF, typename Index>
 IGL_INLINE void igl::outline_ordered(
-    const Eigen::MatrixXi& F, 
+    const Eigen::PlainObjectBase<DerivedF> & F, 
     std::vector<std::vector<Index> >& L)
 {
+  using namespace std;
+  using namespace Eigen;
   MatrixXi E = exterior_edges(F);
 
   set<int> unseen;
   for (int i = 0; i < E.rows(); ++i)
-      unseen.insert(unseen.end(),i);
+  {
+    unseen.insert(unseen.end(),i);
+  }
 
   while (!unseen.empty())
   {

+ 3 - 3
include/igl/outline_ordered.h

@@ -7,7 +7,7 @@
 // obtain one at http://mozilla.org/MPL/2.0/.
 #ifndef IGL_OUTLINE_ORDERED_H
 #define IGL_OUTLINE_ORDERED_H
-#include <igl/igl_inline.h>
+#include "igl_inline.h"
 
 #include <Eigen/Dense>
 #include <vector>
@@ -23,9 +23,9 @@ namespace igl
   // Outputs:
   //   L  list of loops where L[i] = ordered list of boundary vertices in loop i
   //
-  template <typename Index>
+  template <typename DerivedF, typename Index>
   IGL_INLINE void outline_ordered(
-    const Eigen::MatrixXi& F, 
+    const Eigen::PlainObjectBase<DerivedF> & F, 
     std::vector<std::vector<Index> >& L);
 }