Description
Class defining a collision shape.
#include <ChCollisionShape.h>

Public Types | |
| 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. | |
Public Member Functions | |
| 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 |
| virtual ChAABB | GetBoundingBox () const |
| Get the shape bounding box. More... | |
| virtual void | ArchiveOut (ChArchiveOut &archive_out) |
| Method to allow serialization of transient data to archives. | |
| virtual void | ArchiveIn (ChArchiveIn &archive_in) |
| Method to allow de-serialization of transient data from archives. | |
Protected Attributes | |
| Type | m_type |
| type of collision shape | |
| std::shared_ptr< ChContactMaterial > | m_material |
| surface contact material | |
Friends | |
| class | ChCollisionModel |
Member Function Documentation
◆ GetBoundingBox()
|
inlinevirtual |
Get the shape bounding box.
The default implementation returns an inverted AABB.
Reimplemented in chrono::ChCollisionShapeTriangleMesh, chrono::ChCollisionShapeMeshTriangle, chrono::ChCollisionShapeRoundedBox, chrono::ChCollisionShapeRoundedCylinder, chrono::ChCollisionShapeCapsule, chrono::ChCollisionShapeBarrel, chrono::ChCollisionShapeBox, chrono::ChCollisionShapeCone, chrono::ChCollisionShapeCylinder, chrono::ChCollisionShapeCylindricalShell, chrono::ChCollisionShapeEllipsoid, chrono::ChCollisionShapeConvexHull, chrono::ChCollisionShapeSphere, chrono::ChCollisionShapeTriangle, and chrono::ChCollisionShapePoint.
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono/collision/ChCollisionShape.h
- /builds/uwsbel/chrono/src/chrono/collision/ChCollisionShape.cpp