|
@@ -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"
|