comb_frame_field.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef IGL_COMB_FRAME_FIELD_H
  2. #define IGL_COMB_FRAME_FIELD_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 DerivedP>
  21. IGL_INLINE void comb_frame_field(const Eigen::PlainObjectBase<DerivedV> &V,
  22. const Eigen::PlainObjectBase<DerivedF> &F,
  23. const Eigen::PlainObjectBase<DerivedP> &PD1,
  24. const Eigen::PlainObjectBase<DerivedP> &PD2,
  25. const Eigen::PlainObjectBase<DerivedP> &BIS1_combed,
  26. const Eigen::PlainObjectBase<DerivedP> &BIS2_combed,
  27. Eigen::PlainObjectBase<DerivedP> &PD1_combed,
  28. Eigen::PlainObjectBase<DerivedP> &PD2_combed);
  29. }
  30. #ifdef IGL_HEADER_ONLY
  31. #include "comb_frame_field.cpp"
  32. #endif
  33. #endif