23#ifndef VCL_ALGORITHMS_CORE_DISTANCE_FUNCTIONS_H
24#define VCL_ALGORITHMS_CORE_DISTANCE_FUNCTIONS_H
29#include <vclib/concepts/mesh.h>
48template<
typename Obj1,
typename Obj2,
typename ST>
49concept BoundedDistFunctionExists =
80template<
typename Obj1,
typename Obj2>
129template<
typename Obj1,
typename Obj2,
typename ScalarType =
double>
132 if constexpr (detail::BoundedDistFunctionExists<Obj1, Obj2, ScalarType>) {
133 auto f = [](
const Obj1&
o1,
const Obj2&
o2, ScalarType s) {
140 auto f = [](
const Obj1&
o1,
const Obj2&
o2, ScalarType) {
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:43
auto boundedDistFunction()
Return a proper bounded distance function between a Obj1 object and an Obj2 object.
Definition functions.h:130
auto distFunction()
Return a proper dist function between a Obj1 object and an Obj2 object.
Definition functions.h:81
auto boundedDistance(const PointType &p, const FaceType &f, ScalarType maxDist, PointType &closest, bool signedDist=false)
Compute the distance between a 3D point and a face.
Definition element.h:110
auto distance(const VertexType &v, const PointType &p)
Computes the distance between a Vertex and a 3D point.
Definition element.h:50