SOFA API  c76874b7
Open source framework for multi-physics simuation
sofa::component::collision::IntrUtil< TTriangle< DataType > > Struct Template Reference

#include <IntrMeshUtility.h>

Static Public Member Functions

static Real project (defaulttype::Vec< 3, Real > &pt, const TTriangle< DataType > &tri)
 
static SReal triSegNearestPoints (const IntrTri &tri, const defaulttype::Vec< 3, Real > seg[2], defaulttype::Vec< 3, Real > &pt_on_tri, defaulttype::Vec< 3, Real > &pt_on_seg)
 
static void triFaceNearestPoints (const IntrTri &tri, const defaulttype::Vec< 3, Real > *face, int n, defaulttype::Vec< 3, Real > &pt_on_tri, defaulttype::Vec< 3, Real > &pt_on_face)
 

Function details

template<class DataType >
IntrUtil< TTriangle< DataType > >::Real sofa::component::collision::IntrUtil< TTriangle< DataType > >::project ( defaulttype::Vec< 3, Real > &  pt,
const TTriangle< DataType > &  tri 
)
static

Returns the squared distance between old pt and projected pt.

template<class DataType >
static void sofa::component::collision::IntrUtil< TTriangle< DataType > >::triFaceNearestPoints ( const IntrTri tri,
const defaulttype::Vec< 3, Real > *  face,
int  n,
defaulttype::Vec< 3, Real > &  pt_on_tri,
defaulttype::Vec< 3, Real > &  pt_on_face 
)
static
template<typename DataType >
SReal sofa::component::collision::IntrUtil< TTriangle< DataType > >::triSegNearestPoints ( const IntrTri tri,
const defaulttype::Vec< 3, Real seg[2],
defaulttype::Vec< 3, Real > &  pt_on_tri,
defaulttype::Vec< 3, Real > &  pt_on_seg 
)
static