delaunay_triangulation.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2022 Alec Jacobson <[email protected]>
  4. // Copyright (C) 2016 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_PREDICATES_DELAUNAY_TRIANGULATION_H
  10. #define IGL_PREDICATES_DELAUNAY_TRIANGULATION_H
  11. #include "../igl_inline.h"
  12. #include <Eigen/Core>
  13. namespace igl
  14. {
  15. namespace predicates
  16. {
  17. /// Given a set of points in 2D, return a Delaunay triangulation of these
  18. /// points using predicates.
  19. ///
  20. /// @param[in] V #V by 2 list of vertex positions
  21. /// @param[out] F #F by 3 of faces in Delaunay triangulation.
  22. template<
  23. typename DerivedV,
  24. typename DerivedF
  25. >
  26. IGL_INLINE void delaunay_triangulation(
  27. const Eigen::MatrixBase<DerivedV>& V,
  28. Eigen::PlainObjectBase<DerivedF>& F);
  29. }
  30. }
  31. #ifndef IGL_STATIC_LIBRARY
  32. # include "delaunay_triangulation.cpp"
  33. #endif
  34. #endif