cut_mesh_from_singularities.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2014 Daniele Panozzo <[email protected]>, Olga Diamanti <[email protected]>
  4. //
  5. // This Source Code Form is subject to the terms of the Mozilla Public License
  6. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  7. // obtain one at http://mozilla.org/MPL/2.0/.
  8. #ifndef IGL_CUT_MESH_FROM_SINGULARITIES_H
  9. #define IGL_CUT_MESH_FROM_SINGULARITIES_H
  10. #include "igl_inline.h"
  11. #include <Eigen/Core>
  12. namespace igl
  13. {
  14. /// Given a mesh (V,F) and the integer mismatch of a cross field per edge
  15. /// (mismatch), finds the cut_graph connecting the singularities (seams) and the
  16. /// degree of the singularities singularity_index
  17. ///
  18. /// @param[in] V #V by 3 list of mesh vertex positions
  19. /// @param[in] F #F by 3 list of faces
  20. /// @param[in] mismatch #F by 3 list of per corner integer mismatch
  21. /// @param[out] seams #F by 3 list of per corner booleans that denotes if an edge is a
  22. /// seam or not
  23. ///
  24. template <
  25. typename DerivedV,
  26. typename DerivedF,
  27. typename DerivedM,
  28. typename DerivedO>
  29. IGL_INLINE void cut_mesh_from_singularities(
  30. const Eigen::MatrixBase<DerivedV> &V,
  31. const Eigen::MatrixBase<DerivedF> &F,
  32. const Eigen::MatrixBase<DerivedM> &MMatch,
  33. Eigen::PlainObjectBase<DerivedO> &seams);
  34. }
  35. #ifndef IGL_STATIC_LIBRARY
  36. #include "cut_mesh_from_singularities.cpp"
  37. #endif
  38. #endif