#include <CGAL/Simple_cartesian.h>
using FT = typename Kernel::FT;
int main() {
std::cout << "2D/3D tangent weight: ";
std::cout << "2D/3D Shepard weight: ";
std::cout << "2D/3D barycentric area: ";
return EXIT_SUCCESS;
}
A convenience header that includes all weights.
GeomTraits::FT barycentric_area(const typename GeomTraits::Point_2 &p, const typename GeomTraits::Point_2 &q, const typename GeomTraits::Point_2 &r, const GeomTraits &traits)
computes the area of the barycentric cell in 2D using the points p, q, and r.
Definition: barycentric_region_weights.h:33
GeomTraits::FT shepard_weight(const typename GeomTraits::Point_2 &, const typename GeomTraits::Point_2 &p, const typename GeomTraits::Point_2 &, const typename GeomTraits::Point_2 &q, const typename GeomTraits::FT a, const GeomTraits &traits)
computes the Shepard weight in 2D using the points p and q and the power parameter a.
Definition: shepard_weights.h:52
GeomTraits::FT tangent_weight(const typename GeomTraits::Point_2 &p0, const typename GeomTraits::Point_2 &p1, const typename GeomTraits::Point_2 &p2, const typename GeomTraits::Point_2 &q, const GeomTraits &traits)
computes the tangent weight in 2D at q using the points p0, p1, and p2
Definition: tangent_weights.h:288