cross_field_missmatch.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef IGL_CROSS_FIELD_MISSMATCH_H
  2. #define IGL_CROSS_FIELD_MISSMATCH_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. // TODO: this returns singularity index modulo 4. It may need to be modified to cover indices
  21. template <typename DerivedV, typename DerivedF, typename DerivedO>
  22. IGL_INLINE void cross_field_missmatch(const Eigen::PlainObjectBase<DerivedV> &V,
  23. const Eigen::PlainObjectBase<DerivedF> &F,
  24. const Eigen::PlainObjectBase<DerivedV> &PD1,
  25. const Eigen::PlainObjectBase<DerivedV> &PD2,
  26. const bool isCombed,
  27. Eigen::PlainObjectBase<DerivedO> &missmatch);
  28. }
  29. #ifdef IGL_HEADER_ONLY
  30. #include "cross_field_missmatch.cpp"
  31. #endif
  32. #endif