Workspace 6.21.5
Public Member Functions | List of all members
Collisions Class Reference

Define a class for collision and penetration testing.

#include <Mesh/Geometry/collisions.h>

Public Member Functions

 Collisions (double t)
 
double getToleranceToLine () const
 
double getToleranceToPlane () const
 
bool pointInsideTetra (const Vector3d &p, const Vector3d &n0, const Vector3d &n1, const Vector3d &n2, const Vector3d &n3) const
 
bool pointInsideTetraNoTol (const Vector3d &p, const Vector3d &n0, const Vector3d &n1, const Vector3d &n2, const Vector3d &n3) const
 

Constructor & Destructor Documentation

◆ Collisions()

Collisions ( double  t)

The constructor sets the tolerances to use for point-to-plane and point-to-line tests. The point-to-line tolerance is abused by also using it when determining if a point is inside the boundary of a face.

Member Function Documentation

◆ getToleranceToLine()

double getToleranceToLine ( ) const
inline

◆ getToleranceToPlane()

double getToleranceToPlane ( ) const
inline

◆ pointInsideTetra()

bool pointInsideTetra ( const Vector3d p,
const Vector3d n0,
const Vector3d n1,
const Vector3d n2,
const Vector3d n3 
) const
inline

◆ pointInsideTetraNoTol()

bool pointInsideTetraNoTol ( const Vector3d p,
const Vector3d n0,
const Vector3d n1,
const Vector3d n2,
const Vector3d n3 
) const
inline