DARTMesh Class Reference

Triangle mesh collision helper class. More...

#include <DARTMesh.hh>

Public Member Functions

 DARTMesh ()
 Constructor. More...
 
virtual ~DARTMesh ()
 Destructor. More...
 
void Init (const common::SubMesh *_subMesh, DARTCollisionPtr _collision, const ignition::math::Vector3d &_scale)
 Create a mesh collision shape using a submesh. More...
 
void Init (const common::Mesh *_mesh, DARTCollisionPtr _collision, const ignition::math::Vector3d &_scale)
 Create a mesh collision shape using a mesh. More...
 
dart::dynamics::ShapeNodePtr ShapeNode () const
 Returns the DART mesh shape node. More...
 

Detailed Description

Triangle mesh collision helper class.

Constructor & Destructor Documentation

◆ DARTMesh()

DARTMesh ( )

Constructor.

◆ ~DARTMesh()

virtual ~DARTMesh ( )
virtual

Destructor.

Member Function Documentation

◆ Init() [1/2]

void Init ( const common::SubMesh _subMesh,
DARTCollisionPtr  _collision,
const ignition::math::Vector3d &  _scale 
)

Create a mesh collision shape using a submesh.

Parameters
[in]_subMeshPointer to the submesh.
[in]_collisionPointer to the collision object.
[in]_scaleScaling factor.

◆ Init() [2/2]

void Init ( const common::Mesh _mesh,
DARTCollisionPtr  _collision,
const ignition::math::Vector3d &  _scale 
)

Create a mesh collision shape using a mesh.

Parameters
[in]_meshPointer to the mesh.
[in]_collisionPointer to the collision object.
[in]_scaleScaling factor.

◆ ShapeNode()

dart::dynamics::ShapeNodePtr ShapeNode ( ) const

Returns the DART mesh shape node.


The documentation for this class was generated from the following file: