SOFA API  1a4bb3e7
Open source framework for multi-physics simuation
sofa::component::collision::detection::intersection::MeshDiscreteIntersection Class Reference

#include <MeshDiscreteIntersection.h>

Inheritance diagram for sofa::component::collision::detection::intersection::MeshDiscreteIntersection:

Protected Attributes

DiscreteIntersectionintersection
 

Public Member Functions

 MeshDiscreteIntersection (DiscreteIntersection *object, bool addSelf=true)
 
template<class T >
bool testIntersection (collision::geometry::TSphere< T > &, collision::geometry::Triangle &, const core::collision::Intersection *currentIntersection)
 
template<class T >
int computeIntersection (collision::geometry::TSphere< T > &, collision::geometry::Triangle &, OutputVector *, const core::collision::Intersection *currentIntersection)
 
bool testIntersection (collision::geometry::Triangle &, collision::geometry::Line &, const core::collision::Intersection *currentIntersection)
 
int computeIntersection (collision::geometry::Triangle &e1, collision::geometry::Line &e2, OutputVector *contacts, const core::collision::Intersection *currentIntersection)
 
bool testIntersection (collision::geometry::Triangle &, collision::geometry::Line &)
 
template<class T >
bool testIntersection (collision::geometry::TSphere< T > &, collision::geometry::Triangle &)
 
int computeIntersection (collision::geometry::Triangle &e1, collision::geometry::Line &e2, OutputVector *contacts)
 
template<class T >
int computeIntersection (collision::geometry::TSphere< T > &, collision::geometry::Triangle &, OutputVector *)
 
- Public Member Functions inherited from sofa::core::collision::BaseIntersector
 BaseIntersector ()
 
 ~BaseIntersector ()
 
template<class Model1 , class Model2 >
sofa::core::collision::TDetectionOutputVector< Model1, Model2 > * createOutputVector (Model1 *, Model2 *)
 
template<class Model1 , class Model2 >
sofa::core::collision::TDetectionOutputVector< Model1, Model2 > * getOutputVector (Model1 *, Model2 *, sofa::core::collision::DetectionOutputVector *contacts)
 
int beginIntersection (sofa::core::CollisionModel *, sofa::core::CollisionModel *, OutputVector *)
 
int endIntersection (sofa::core::CollisionModel *, sofa::core::CollisionModel *, OutputVector *)
 

Attribute details

◆ intersection

DiscreteIntersection* sofa::component::collision::detection::intersection::MeshDiscreteIntersection::intersection
protected

Constructor details

◆ MeshDiscreteIntersection()

sofa::component::collision::detection::intersection::MeshDiscreteIntersection::MeshDiscreteIntersection ( DiscreteIntersection object,
bool  addSelf = true 
)

Function details

◆ computeIntersection() [1/4]

int sofa::component::collision::detection::intersection::MeshDiscreteIntersection::computeIntersection ( collision::geometry::Triangle e1,
collision::geometry::Line e2,
OutputVector contacts 
)

◆ computeIntersection() [2/4]

int sofa::component::collision::detection::intersection::MeshDiscreteIntersection::computeIntersection ( collision::geometry::Triangle e1,
collision::geometry::Line e2,
OutputVector contacts,
const core::collision::Intersection currentIntersection 
)

◆ computeIntersection() [3/4]

template<class T >
int sofa::component::collision::detection::intersection::MeshDiscreteIntersection::computeIntersection ( collision::geometry::TSphere< T > &  sph,
collision::geometry::Triangle triangle,
OutputVector contacts 
)

◆ computeIntersection() [4/4]

template<class T >
int sofa::component::collision::detection::intersection::MeshDiscreteIntersection::computeIntersection ( collision::geometry::TSphere< T > &  sph,
collision::geometry::Triangle triangle,
OutputVector contacts,
const core::collision::Intersection currentIntersection 
)

◆ testIntersection() [1/4]

bool sofa::component::collision::detection::intersection::MeshDiscreteIntersection::testIntersection ( collision::geometry::Triangle t,
collision::geometry::Line l 
)

◆ testIntersection() [2/4]

bool sofa::component::collision::detection::intersection::MeshDiscreteIntersection::testIntersection ( collision::geometry::Triangle ,
collision::geometry::Line ,
const core::collision::Intersection currentIntersection 
)

◆ testIntersection() [3/4]

template<class T >
bool sofa::component::collision::detection::intersection::MeshDiscreteIntersection::testIntersection ( collision::geometry::TSphere< T > &  sph,
collision::geometry::Triangle triangle 
)

◆ testIntersection() [4/4]

template<class T >
bool sofa::component::collision::detection::intersection::MeshDiscreteIntersection::testIntersection ( collision::geometry::TSphere< T > &  sph,
collision::geometry::Triangle triangle,
const core::collision::Intersection currentIntersection 
)