delaunay_triangulation.cpp 782 B

123456789101112131415161718192021222324
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2016 Qingnan Zhou <qnzhou@gmail.com>
  4. //
  5. // This Source Code Form is subject to the terms of the Mozilla Public License
  6. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  7. // obtain one at http://mozilla.org/MPL/2.0/.
  8. #include "delaunay_triangulation.h"
  9. #include "../../delaunay_triangulation.h"
  10. #include "orient2D.h"
  11. #include "incircle.h"
  12. template<
  13. typename DerivedV,
  14. typename DerivedF>
  15. IGL_INLINE void igl::copyleft::cgal::delaunay_triangulation(
  16. const Eigen::PlainObjectBase<DerivedV>& V,
  17. Eigen::PlainObjectBase<DerivedF>& F)
  18. {
  19. typedef typename DerivedV::Scalar Scalar;
  20. igl::delaunay_triangulation(V, orient2D<Scalar>, incircle<Scalar>, F);
  21. }