chrono::ChCollisionShapeTriangleMesh Class Reference
Description
Collision mesh shape.
#include <ChCollisionShapeTriangleMesh.h>
Inheritance diagram for chrono::ChCollisionShapeTriangleMesh:
Collaboration diagram for chrono::ChCollisionShapeTriangleMesh:
Public Member Functions | |
ChCollisionShapeTriangleMesh (std::shared_ptr< ChContactMaterial > material, std::shared_ptr< ChTriangleMesh > mesh, bool is_static, bool is_convex, double radius=0) | |
std::shared_ptr< ChTriangleMesh > | GetMesh () |
Access the mesh geometry. | |
bool | IsStatic () const |
Return true if the mesh is model does not move. | |
bool | IsConvex () const |
Return true if the mesh is convex. | |
double | GetRadius () const |
Return the mesh thickness as the radius of a sphere-swept mesh. | |
virtual void | ArchiveOut (ChArchiveOut &archive_out) override |
Method to allow serialization of transient data to archives. | |
virtual void | ArchiveIn (ChArchiveIn &archive_in) 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< ChContactMaterial > material) | |
Type | GetType () const |
std::shared_ptr< ChContactMaterial > | GetMaterial () const |
ChContactMethod | GetContactMethod () const |
Additional Inherited Members | |
Public Types inherited from chrono::ChCollisionShape | |
enum | Type { SPHERE, ELLIPSOID, BOX, CYLINDER, CYLSHELL, CONVEXHULL, TRIANGLEMESH, BARREL, POINT, SEGMENT, 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< ChContactMaterial > | m_material |
surface contact material | |
Constructor & Destructor Documentation
◆ ChCollisionShapeTriangleMesh()
chrono::ChCollisionShapeTriangleMesh::ChCollisionShapeTriangleMesh | ( | std::shared_ptr< ChContactMaterial > | material, |
std::shared_ptr< ChTriangleMesh > | mesh, | ||
bool | is_static, | ||
bool | is_convex, | ||
double | radius = 0 |
||
) |
- Parameters
-
material surface contact material mesh mesh geometry is_static true if the model doesn't move. May improve performance. is_convex if true, a convex hull is used. May improve robustness. radius outward sphere-swept layer (when supported)
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono/collision/ChCollisionShapeTriangleMesh.h
- /builds/uwsbel/chrono/src/chrono/collision/ChCollisionShapeTriangleMesh.cpp