lexicographic_triangulation.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2016 Alec Jacobson <[email protected]>
  4. // Qingan Zhou <[email protected]>
  5. //
  6. // This Source Code Form is subject to the terms of the Mozilla Public License
  7. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  8. // obtain one at http://mozilla.org/MPL/2.0/.
  9. #ifndef IGL_COPYLEFT_CGAL_LEXICOGRAPHIC_TRIANGULATION_H
  10. #define IGL_COPYLEFT_CGAL_LEXICOGRAPHIC_TRIANGULATION_H
  11. #include "../../igl_inline.h"
  12. #include <Eigen/Core>
  13. namespace igl
  14. {
  15. namespace copyleft
  16. {
  17. namespace cgal
  18. {
  19. /// Given a set of points in 2D, return a lexicographic triangulation of these
  20. /// points.
  21. ///
  22. /// @param[in] P #P by 2 list of vertex positions
  23. /// @param[out] F #F by 3 of faces in lexicographic triangulation.
  24. template<
  25. typename DerivedP,
  26. typename DerivedF
  27. >
  28. IGL_INLINE void lexicographic_triangulation(
  29. const Eigen::MatrixBase<DerivedP>& P,
  30. Eigen::PlainObjectBase<DerivedF>& F);
  31. }
  32. }
  33. }
  34. #ifndef IGL_STATIC_LIBRARY
  35. # include "lexicographic_triangulation.cpp"
  36. #endif
  37. #endif