SOFA plugin: CollisionOBBCapsule  master
Open source framework for multi-physics simuation
collisionobbcapsule::detection::intersection::IntrUtil< TTriangle< DataType > > Struct Template Reference

#include <IntrMeshUtility.h>

Static Public Member Functions

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

Function details

◆ project()

template<class DataType >
IntrUtil< TTriangle< DataType > >::Real collisionobbcapsule::detection::intersection::IntrUtil< TTriangle< DataType > >::project ( type::Vec< 3, Real > &  pt,
const TTriangle< DataType > &  tri 
)
static

Returns the squared distance between old pt and projected pt.

◆ triFaceNearestPoints()

template<class DataType >
static void collisionobbcapsule::detection::intersection::IntrUtil< TTriangle< DataType > >::triFaceNearestPoints ( const IntrTri tri,
const type::Vec< 3, Real > *  face,
int  n,
type::Vec< 3, Real > &  pt_on_tri,
type::Vec< 3, Real > &  pt_on_face 
)
static

◆ triSegNearestPoints()

template<typename DataType >
SReal collisionobbcapsule::detection::intersection::IntrUtil< TTriangle< DataType > >::triSegNearestPoints ( const IntrTri tri,
const type::Vec< 3, Real seg[2],
type::Vec< 3, Real > &  pt_on_tri,
type::Vec< 3, Real > &  pt_on_seg 
)
static