chrono::ChCollisionShapeMeshTriangle Class Reference

Description

Collision shape representing a triangle in a connected mesh.

Unlike a ChCollisionShapeTriangle, this collision shape also maintains information on neighboring vertices and edges in the containing mesh. This allows a collision system to implement mesh collision without double-counting node and edge interactions. For efficiency, this object uses pointers to the vertices in the containing mesh.

#include <ChCollisionShapeMeshTriangle.h>

Inheritance diagram for chrono::ChCollisionShapeMeshTriangle:
Collaboration diagram for chrono::ChCollisionShapeMeshTriangle:

Public Member Functions

 ChCollisionShapeMeshTriangle (std::shared_ptr< ChMaterialSurface > material, ChVector<> *V1, ChVector<> *V2, ChVector<> *V3, ChVector<> *eP1, ChVector<> *eP2, ChVector<> *eP3, bool ownsV1, bool ownsV2, bool ownsV3, bool ownsE1, bool ownsE2, bool ownsE3, double sphere_radius)
 
virtual void ArchiveOut (ChArchiveOut &marchive) override
 Method to allow serialization of transient data to archives.
 
virtual void ArchiveIn (ChArchiveIn &marchive) override
 Method to allow de-serialization of transient data from archives.
 
- Public Member Functions inherited from chrono::ChCollisionShape
 ChCollisionShape (Type type=Type::UNKNOWN_SHAPE)
 
 ChCollisionShape (Type type, std::shared_ptr< ChMaterialSurface > material)
 
Type GetType () const
 
std::shared_ptr< ChMaterialSurfaceGetMaterial () const
 
ChContactMethod GetContactMethod () const
 

Public Attributes

ChVectorV1
 
ChVectorV2
 
ChVectorV3
 
ChVectoreP1
 
ChVectoreP2
 
ChVectoreP3
 
bool ownsV1
 
bool ownsV2
 
bool ownsV3
 
bool ownsE1
 
bool ownsE2
 
bool ownsE3
 
double sradius
 

Additional Inherited Members

- Public Types inherited from chrono::ChCollisionShape
enum  Type {
  SPHERE, ELLIPSOID, BOX, CYLINDER,
  CYLSHELL, CONVEXHULL, TRIANGLEMESH, BARREL,
  POINT, TRIANGLE, MESHTRIANGLE, CAPSULE,
  CONE, ROUNDEDBOX, ROUNDEDCYL, TETRAHEDRON,
  PATH2D, SEGMENT2D, ARC2D, UNKNOWN_SHAPE
}
 Supported collision shape types.
 
- Protected Attributes inherited from chrono::ChCollisionShape
Type m_type
 type of collision shape
 
std::shared_ptr< ChMaterialSurfacem_material
 surface contact material
 

Constructor & Destructor Documentation

◆ ChCollisionShapeMeshTriangle()

chrono::ChCollisionShapeMeshTriangle::ChCollisionShapeMeshTriangle ( std::shared_ptr< ChMaterialSurface material,
ChVector<> *  V1,
ChVector<> *  V2,
ChVector<> *  V3,
ChVector<> *  eP1,
ChVector<> *  eP2,
ChVector<> *  eP3,
bool  ownsV1,
bool  ownsV2,
bool  ownsV3,
bool  ownsE1,
bool  ownsE2,
bool  ownsE3,
double  sphere_radius 
)
Parameters
materialcontact material
V1vertex1 coords
V2vertex2 coords
V3vertex3 coords
eP1neighboring vertex at edge1 if any
eP2neighboring vertex at edge2 if any
eP3neighboring vertex at edge3 if any
ownsV1vertex1 owned by this triangle (otherwise, owned by neighbor)
ownsV2vertex2 owned by this triangle (otherwise, owned by neighbor)
ownsV3vertex3 owned by this triangle (otherwise, owned by neighbor)
ownsE1edge1 owned by this triangle (otherwise, owned by neighbor)
ownsE2edge2 owned by this triangle (otherwise, owned by neighbor)
ownsE3edge3 owned by this triangle (otherwise, owned by neighbor)
sphere_radiusradius of swept sphere

The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono/collision/ChCollisionShapeMeshTriangle.h
  • /builds/uwsbel/chrono/src/chrono/collision/ChCollisionShapeMeshTriangle.cpp