comb_cross_field.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef IGL_COMB_CROSS_FIELD_H
  2. #define IGL_COMB_CROSS_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>
  21. IGL_INLINE void comb_cross_field(const Eigen::PlainObjectBase<DerivedV> &V,
  22. const Eigen::PlainObjectBase<DerivedF> &F,
  23. const Eigen::PlainObjectBase<DerivedV> &PD1in,
  24. const Eigen::PlainObjectBase<DerivedV> &PD2in,
  25. Eigen::PlainObjectBase<DerivedV> &PD1out,
  26. Eigen::PlainObjectBase<DerivedV> &PD2out);
  27. }
  28. #ifdef IGL_HEADER_ONLY
  29. #include "comb_cross_field.cpp"
  30. #endif
  31. #endif