SOFA API  ca665544
Open source framework for multi-physics simuation
sofa::geometry::proximity Namespace Reference

Functions

template<typename Node , typename T = std::decay_t<decltype(*std::begin(std::declval<Node>()))>, typename = std::enable_if_t<std::is_scalar_v<T>>>
constexpr bool computeClosestPointOnTriangleToPoint (const Node &triangleP_0, const Node &triangleP_1, const Node &triangleP_2, const Node &pointQ, Node &closestPointInP)
 
template<typename Node , typename T = std::decay_t<decltype(*std::begin(std::declval<Node>()))>, typename = std::enable_if_t<std::is_scalar_v<T>>>
constexpr bool computeClosestPointsSegmentAndTriangle (const Node &triangleP_0, const Node &triangleP_1, const Node &triangleP_2, const Node &segmentQ_0, const Node &segmentQ_1, Node &closestPointInP, Node &closestPointInQ)
 
template<typename Node , typename T = std::decay_t<decltype(*std::begin(std::declval<Node>()))>, typename = std::enable_if_t<std::is_scalar_v<T>>>
constexpr bool computeClosestPointsInTwoTriangles (const Node &triangleP_0, const Node &triangleP_1, const Node &triangleP_2, const Node &triangleQ_0, const Node &triangleQ_1, const Node &triangleQ_2, Node &closestPointInP, Node &closestPointInQ)
 

Function Documentation

◆ computeClosestPointOnTriangleToPoint()

template<typename Node , typename T = std::decay_t<decltype(*std::begin(std::declval<Node>()))>, typename = std::enable_if_t<std::is_scalar_v<T>>>
constexpr bool sofa::geometry::proximity::computeClosestPointOnTriangleToPoint ( const Node &  triangleP_0,
const Node &  triangleP_1,
const Node &  triangleP_2,
const Node &  pointQ,
Node &  closestPointInP 
)
constexpr

◆ computeClosestPointsInTwoTriangles()

template<typename Node , typename T = std::decay_t<decltype(*std::begin(std::declval<Node>()))>, typename = std::enable_if_t<std::is_scalar_v<T>>>
constexpr bool sofa::geometry::proximity::computeClosestPointsInTwoTriangles ( const Node &  triangleP_0,
const Node &  triangleP_1,
const Node &  triangleP_2,
const Node &  triangleQ_0,
const Node &  triangleQ_1,
const Node &  triangleQ_2,
Node &  closestPointInP,
Node &  closestPointInQ 
)
constexpr

◆ computeClosestPointsSegmentAndTriangle()

template<typename Node , typename T = std::decay_t<decltype(*std::begin(std::declval<Node>()))>, typename = std::enable_if_t<std::is_scalar_v<T>>>
constexpr bool sofa::geometry::proximity::computeClosestPointsSegmentAndTriangle ( const Node &  triangleP_0,
const Node &  triangleP_1,
const Node &  triangleP_2,
const Node &  segmentQ_0,
const Node &  segmentQ_1,
Node &  closestPointInP,
Node &  closestPointInQ 
)
constexpr