sofa::core::componentmodel::collision::DetectionOutput Class Reference

Generic description of a contact point, used for most collision models except special cases such as GPU-based collisions. More...

#include <DetectionOutput.h>

Collaboration diagram for sofa::core::componentmodel::collision::DetectionOutput:

Collaboration graph
[legend]

Public Types

typedef int64_t ContactId

Public Member Functions

 DetectionOutput ()

Data Fields

std::pair
< core::CollisionElementIterator,
core::CollisionElementIterator > 
elem
 Pair of colliding elements.
ContactId id
 Unique id of the contact for the given pair of collision models.
Vector3 point [2]
 Contact points on the surface of each model. They are expressed in the local coordinate system of the model if any is defined..
Vector3 freePoint [2]
 free Point in contact on each element
Vector3 normal
 Normal of the contact, pointing outward from the first model.
double value
 Store information for the collision Response. Depending on the kind of contact, can be a distance, or a pression, ...
double deltaT
 If using a continuous collision detection, estimated of time of contact.

Detailed Description

Generic description of a contact point, used for most collision models except special cases such as GPU-based collisions.

Each contact point is described by :

elem: pair of colliding elements. id: unique id of the contact for the given pair of collision models. point: contact points on the surface of each model. normal: normal of the contact, pointing outward from the first model. value: signed distance (negative if objects are interpenetrating). deltaT: estimated of time of contact.

The contact id is used to filter redundant contacts (only the contact with the smallest distance is kept), and to store persistant data over time for the response.

Definition at line 90 of file DetectionOutput.h.


Member Typedef Documentation

Definition at line 95 of file DetectionOutput.h.


Constructor & Destructor Documentation

sofa::core::componentmodel::collision::DetectionOutput::DetectionOutput (  )  [inline]

Definition at line 112 of file DetectionOutput.h.


Field Documentation

If using a continuous collision detection, estimated of time of contact.

Definition at line 111 of file DetectionOutput.h.


The documentation for this class was generated from the following file:

Generated on Sun Nov 23 04:23:36 2008 for Sofa by  doxygen 1.5.7.1