cut_mesh_from_singularities.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef IGL_CUT_MESH_FROM_SINGULARITIES_H
  2. #define IGL_CUT_MESH_FROM_SINGULARITIES_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Core>
  5. namespace igl
  6. {
  7. //todo
  8. // Creates a quad mesh from a triangular mesh and a set of two directions
  9. // per face, using the algorithm described in the paper
  10. // "Mixed-Integer Quadrangulation" by D. Bommes, H. Zimmer, L. Kobbelt
  11. // ACM SIGGRAPH 2009, Article No. 77 (http://dl.acm.org/citation.cfm?id=1531383)
  12. // Inputs:
  13. // Vin #V by 3 eigen Matrix of mesh vertex 3D positions
  14. // F #F by 4 eigen Matrix of face (quad) indices
  15. // maxIter maximum numbers of iterations
  16. // threshold minimum allowed threshold for non-planarity
  17. // Output:
  18. // Vout #V by 3 eigen Matrix of planar mesh vertex 3D positions
  19. //
  20. template <typename DerivedV, typename DerivedF, typename DerivedM, typename DerivedS, typename DerivedO>
  21. IGL_INLINE void cut_mesh_from_singularities(const Eigen::PlainObjectBase<DerivedV> &V,
  22. const Eigen::PlainObjectBase<DerivedF> &F,
  23. const Eigen::PlainObjectBase<DerivedM> &Handle_MMatch,
  24. const Eigen::PlainObjectBase<DerivedS> &isSingularity,
  25. const Eigen::PlainObjectBase<DerivedS> &singularityIndex,
  26. Eigen::PlainObjectBase<DerivedO> &Handle_Seams);
  27. }
  28. #ifdef IGL_HEADER_ONLY
  29. #include "cut_mesh_from_singularities.cpp"
  30. #endif
  31. #endif