Classes |
Public Member Functions |
Static Public Member Functions |
Public Attributes |
List of all members
chrono::utils::ChBodyGeometry Class Reference
Description
Utility class defining geometry (visualization and collision) and contact materials for a rigid body.
Holds vectors of primitive shapes (any one of which may be empty) and a list of contact materials. Each shape defines its position and orientation relative to the parent body, geometric dimensions, and an index into the list of contact materials.
#include <ChBodyGeometry.h>
Collaboration diagram for chrono::utils::ChBodyGeometry:

Classes | |
| struct | BoxShape |
| Box shape for visualization and/or collision. More... | |
| struct | ConeShape |
| Cone shape for visualization and/or collision. More... | |
| struct | ConvexHullsShape |
| Convex hulls shape for collision. More... | |
| struct | CylinderShape |
| Cylinder shape for visualization and/or collision. More... | |
| struct | LineShape |
| Line shape for visualization. More... | |
| struct | SphereShape |
| Sphere shape for visualization and/or collision. More... | |
| struct | TrimeshShape |
| Tri-mesh shape for visualization and/or collision. More... | |
Public Member Functions | |
| void | CreateVisualizationAssets (std::shared_ptr< ChBody > body, VisualizationType vis=VisualizationType::PRIMITIVES) |
| Create visualization assets for the specified body. | |
| void | CreateCollisionShapes (std::shared_ptr< ChBody > body, int collision_family, ChContactMethod contact_method) |
| Create collision shapes for the specified body. | |
| ChAABB | CalculateAABB () |
| Calculate axis-aligned bounding box of all collision shapes. | |
| bool | HasCollision () const |
| Indicate whether or not collision shapes are defined. | |
| bool | HasVisualizationPrimitives () const |
| Indicate whether or not visualization primitives are defined. | |
| bool | HasVisualizationMesh () const |
| Indicate whether or not a visualization mesh is defined. | |
Static Public Member Functions | |
| static std::shared_ptr< ChVisualShape > | AddVisualizationCylinder (std::shared_ptr< ChBody > body, const ChVector3d &p1, const ChVector3d &p2, double radius, ChVisualMaterialSharedPtr mat=nullptr) |
| Utility function for adding a cylinder visualization shape defined by the end points and a radius. More... | |
| static std::string | GetVisualizationTypeAsString (VisualizationType type) |
Public Attributes | |
| std::vector< ChContactMaterialData > | materials |
| list of contact materials | |
| std::vector< BoxShape > | coll_boxes |
| list of collision boxes | |
| std::vector< SphereShape > | coll_spheres |
| list of collision spheres | |
| std::vector< CylinderShape > | coll_cylinders |
| list of collision cylinders | |
| std::vector< ConeShape > | coll_cones |
| list of cone cylinders | |
| std::vector< TrimeshShape > | coll_meshes |
| list of collision trimeshes | |
| std::vector< ConvexHullsShape > | coll_hulls |
| list of collision convex hulls | |
| std::vector< BoxShape > | vis_boxes |
| list of visualization boxes | |
| std::vector< SphereShape > | vis_spheres |
| list of visualization spheres | |
| std::vector< CylinderShape > | vis_cylinders |
| list of visualization cylinders | |
| std::vector< ConeShape > | vis_cones |
| list of visualization cones | |
| std::vector< TrimeshShape > | vis_meshes |
| list of collision trimeshes | |
| std::vector< LineShape > | vis_lines |
| list of visualization lines | |
| ChColor | color_boxes |
| default visualization color for box primitives | |
| ChColor | color_spheres |
| default visualization color for sphere primitives | |
| ChColor | color_cylinders |
| default visualization color for cylinder primitives | |
| ChColor | color_cones |
| default visualization color for cone primitives | |
| ChColor | color_meshes |
| default visualization color for mesh primitives | |
| std::string | vis_model_file |
| name of file with visualization mesh | |
Member Function Documentation
◆ AddVisualizationCylinder()
|
static |
Utility function for adding a cylinder visualization shape defined by the end points and a radius.
This function adds the visualization shape to the body's visual model and returns the shape.
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono/utils/ChBodyGeometry.h
- /builds/uwsbel/chrono/src/chrono/utils/ChBodyGeometry.cpp