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< ChTriangleMeshGetMesh ()
 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< ChContactMaterialGetMaterial () const
 
ChContactMethod GetContactMethod () const
 

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< ChContactMaterialm_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
materialsurface contact material
meshmesh geometry
is_statictrue if the model doesn't move. May improve performance.
is_convexif true, a convex hull is used. May improve robustness.
radiusoutward sphere-swept layer (when supported)

Member Function Documentation

◆ ArchiveIn()

void chrono::ChCollisionShapeTriangleMesh::ArchiveIn ( ChArchiveIn & archive_in)
overridevirtual

Method to allow de-serialization of transient data from archives.

Reimplemented from chrono::ChCollisionShape.

◆ ArchiveOut()

void chrono::ChCollisionShapeTriangleMesh::ArchiveOut ( ChArchiveOut & archive_out)
overridevirtual

Method to allow serialization of transient data to archives.

Reimplemented from chrono::ChCollisionShape.


The documentation for this class was generated from the following files:
  • C:/M/B/src/chrono-9.0.1/src/chrono/collision/ChCollisionShapeTriangleMesh.h
  • C:/M/B/src/chrono-9.0.1/src/chrono/collision/ChCollisionShapeTriangleMesh.cpp