coplanar.h 569 B

12345678910111213141516171819202122232425
  1. #ifndef IGL_COPYLEFT_CGAL_COPLANAR_H
  2. #define IGL_COPYLEFT_CGAL_COPLANAR_H
  3. #include "../../igl_inline.h"
  4. #include <Eigen/Core>
  5. namespace igl
  6. {
  7. namespace copyleft
  8. {
  9. namespace cgal
  10. {
  11. /// Test whether all points are on same plane.
  12. ///
  13. /// @param[in] V #V by 3 list of 3D vertex positions
  14. /// @return true if all points lie on the same plane
  15. template <typename DerivedV>
  16. IGL_INLINE bool coplanar(
  17. const Eigen::MatrixBase<DerivedV> & V);
  18. }
  19. }
  20. }
  21. #ifndef IGL_STATIC_LIBRARY
  22. # include "coplanar.cpp"
  23. #endif
  24. #endif