|
Simbody
3.4 (development)
|
This algorithm detects contacts between two ContactGeometry::TriangleMesh objects. More...
#include <CollisionDetectionAlgorithm.h>
Inheritance diagram for SimTK::CollisionDetectionAlgorithm::TriangleMeshTriangleMesh:Public Member Functions | |
| virtual | ~TriangleMeshTriangleMesh () |
| void | processObjects (ContactSurfaceIndex index1, const ContactGeometry &object1, const Transform &transform1, ContactSurfaceIndex index2, const ContactGeometry &object2, const Transform &transform2, Array_< Contact > &contacts) const |
| Identify contacts between a pair of bodies. | |
This algorithm detects contacts between two ContactGeometry::TriangleMesh objects.
| virtual SimTK::CollisionDetectionAlgorithm::TriangleMeshTriangleMesh::~TriangleMeshTriangleMesh | ( | ) | [inline, virtual] |
| void SimTK::CollisionDetectionAlgorithm::TriangleMeshTriangleMesh::processObjects | ( | ContactSurfaceIndex | index1, |
| const ContactGeometry & | object1, | ||
| const Transform & | transform1, | ||
| ContactSurfaceIndex | index2, | ||
| const ContactGeometry & | object2, | ||
| const Transform & | transform2, | ||
| Array_< Contact > & | contacts | ||
| ) | const [virtual] |
Identify contacts between a pair of bodies.
| index1 | the index of the first body within its contact set |
| object1 | the ContactGeometry for the first body |
| transform1 | the location and orientation of the first body in the ground frame |
| index2 | the index of the second body within its contact set |
| object2 | the ContactGeometry for the second body |
| transform2 | the location and orientation of the second body in the ground frame |
| contacts | if the bodies overlap, a Contact should be added to this for each distinct contact between them. (Multiple contacts may exist if one of the bodies is concave.) |
Implements SimTK::CollisionDetectionAlgorithm.