quad_planarity.h 695 B

12345678910111213141516171819202122232425
  1. #ifndef IGL_QUAD_PLANARITY_H
  2. #define IGL_QUAD_PLANARITY_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Core>
  5. namespace igl
  6. {
  7. // Compute planarity of the faces of a quad mesh
  8. // Inputs:
  9. // V #V by 3 eigen Matrix of mesh vertex 3D positions
  10. // F #F by 4 eigen Matrix of face (quad) indices
  11. // Output:
  12. // P #F by 1 eigen Matrix of mesh face (quad) planarities
  13. //
  14. template <typename DerivedV, typename DerivedF, typename DerivedP>
  15. IGL_INLINE void quad_planarity(
  16. const Eigen::PlainObjectBase<DerivedV>& V,
  17. const Eigen::PlainObjectBase<DerivedF>& F,
  18. Eigen::PlainObjectBase<DerivedP> & P);
  19. }
  20. #ifndef IGL_STATIC_LIBRARY
  21. # include "quad_planarity.cpp"
  22. #endif
  23. #endif