Parcourir la source

style

Former-commit-id: e5b2ab0a97de21c6f769c679ab7ff9b840d38e55
Alec Jacobson il y a 9 ans
Parent
commit
2254bf5990
1 fichiers modifiés avec 19 ajouts et 12 suppressions
  1. 19 12
      include/igl/cut_mesh_from_singularities.h

+ 19 - 12
include/igl/cut_mesh_from_singularities.h

@@ -12,21 +12,28 @@
 #include <Eigen/Core>
 namespace igl
 {
-  // Given a mesh (V,F) and the integer mismatch of a cross field per edge (MMatch),
-  // finds the cut_graph connecting the singularities (seams) and the degree of the singularities
-  // singularity_index
+  // Given a mesh (V,F) and the integer mismatch of a cross field per edge
+  // (MMatch), finds the cut_graph connecting the singularities (seams) and the
+  // degree of the singularities singularity_index
   //
   // Input:
-  // V:                 #V by 3 list of mesh vertex positions
-  // F:                 #F by 3 list of faces
-  // MMatch:            #F by 3 list of per corner integer mismatch
-  // seams:             #F by 3 list of per corner booleans that denotes if an edge is a seam or not
+  //   V  #V by 3 list of mesh vertex positions
+  //   F  #F by 3 list of faces
+  //   MMatch  #F by 3 list of per corner integer mismatch
+  // Outputs:
+  //   seams  #F by 3 list of per corner booleans that denotes if an edge is a
+  //     seam or not
   //
-  template <typename DerivedV, typename DerivedF, typename DerivedM, typename DerivedO>
-  IGL_INLINE void cut_mesh_from_singularities(const Eigen::PlainObjectBase<DerivedV> &V,
-                                                   const Eigen::PlainObjectBase<DerivedF> &F,
-                                                   const Eigen::PlainObjectBase<DerivedM> &MMatch,
-                                                   Eigen::PlainObjectBase<DerivedO> &seams);
+  template <
+    typename DerivedV, 
+    typename DerivedF, 
+    typename DerivedM, 
+    typename DerivedO> 
+  IGL_INLINE void cut_mesh_from_singularities(
+    const Eigen::PlainObjectBase<DerivedV> &V, 
+    const Eigen::PlainObjectBase<DerivedF> &F, 
+    const Eigen::PlainObjectBase<DerivedM> &MMatch,
+    Eigen::PlainObjectBase<DerivedO> &seams);
 }
 #ifndef IGL_STATIC_LIBRARY
 #include "cut_mesh_from_singularities.cpp"