Prechádzať zdrojové kódy

typo in face_occurrences name

Former-commit-id: eeef213e30cf044690734afbc151e63e0e656db1
Alec Jacobson 10 rokov pred
rodič
commit
2c75b2cf21

+ 2 - 2
include/igl/boundary_facets.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 "boundary_facets.h"
-#include "face_occurences.h"
+#include "face_occurrences.h"
 
 // IGL includes
 #include "sort.h"
@@ -72,7 +72,7 @@ IGL_INLINE void igl::boundary_facets(
 
   // Counts
   vector<int> C;
-  face_occurences(allF,C);
+  face_occurrences(allF,C);
 
   // Q: Why not just count the number of ones?
   // A: because we are including non-manifold edges as boundary edges

+ 3 - 3
include/igl/face_occurences.cpp → include/igl/face_occurrences.cpp

@@ -5,14 +5,14 @@
 // This Source Code Form is subject to the terms of the Mozilla Public License 
 // 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 "face_occurences.h"
+#include "face_occurrences.h"
 
 #include <map>
 #include "sort.h"
 #include <cassert>
 
 template <typename IntegerF, typename IntegerC>
-IGL_INLINE void igl::face_occurences(
+IGL_INLINE void igl::face_occurrences(
   const std::vector<std::vector<IntegerF> > & F,
   std::vector<IntegerC> & C)
 {
@@ -52,5 +52,5 @@ IGL_INLINE void igl::face_occurences(
 
 #ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
-template void igl::face_occurences<int, int>(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > > const&, std::vector<int, std::allocator<int> >&);
+template void igl::face_occurrences<int, int>(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > > const&, std::vector<int, std::allocator<int> >&);
 #endif

+ 4 - 4
include/igl/face_occurences.h → include/igl/face_occurrences.h

@@ -5,8 +5,8 @@
 // This Source Code Form is subject to the terms of the Mozilla Public License 
 // 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/.
-#ifndef IGL_FACE_OCCURENCES
-#define IGL_FACE_OCCURENCES
+#ifndef IGL_FACE_OCCURRENCES
+#define IGL_FACE_OCCURRENCES
 #include "igl_inline.h"
 
 #include <vector>
@@ -20,13 +20,13 @@ namespace igl
   //   C  #F list of counts
   // Known bug: triangles/tets only (where ignoring order still gives simplex)
   template <typename IntegerF, typename IntegerC>
-  IGL_INLINE void face_occurences(
+  IGL_INLINE void face_occurrences(
     const std::vector<std::vector<IntegerF> > & F,
     std::vector<IntegerC> & C);
 }
 
 #ifndef IGL_STATIC_LIBRARY
-#  include "face_occurences.cpp"
+#  include "face_occurrences.cpp"
 #endif
 
 #endif

+ 2 - 2
include/igl/on_boundary.cpp

@@ -9,7 +9,7 @@
 
 // IGL includes
 #include "sort.h"
-#include "face_occurences.h"
+#include "face_occurrences.h"
 
 // STL includes
 
@@ -47,7 +47,7 @@ IGL_INLINE void igl::on_boundary(
   }
   // Counts
   vector<int> FC;
-  face_occurences(F,FC);
+  face_occurrences(F,FC);
   C.resize(T.size(),vector<bool>(4));
   I.resize(T.size(),false);
   for(int i = 0; i< (int)T.size();i++)