#include <CGAL/Simple_cartesian.h>
#include <CGAL/Weights/inverse_distance_weights.h>
struct Custom_traits {
using FT = typename Kernel::FT;
decltype(auto) compute_squared_distance_2_object() const {
return Kernel::Compute_squared_distance_2();
}
decltype(auto) compute_squared_distance_3_object() const {
return Kernel::Compute_squared_distance_3();
}
};
int main() {
const Custom_traits ctraits;
std::cout << "2D/3D weight: ";
return EXIT_SUCCESS;
}
GeomTraits::FT inverse_distance_weight(const typename GeomTraits::Point_2 &, const typename GeomTraits::Point_2 &p, const typename GeomTraits::Point_2 &, const typename GeomTraits::Point_2 &q, const GeomTraits &traits)
computes the inverse distance weight in 2D using the points p and q.
Definition: inverse_distance_weights.h:49