DART  6.10.1
dart::collision::detail::OdeMesh Class Reference

#include <OdeMesh.hpp>

Inheritance diagram for dart::collision::detail::OdeMesh:
dart::collision::detail::OdeGeom

Public Member Functions

 OdeMesh (const OdeCollisionObject *parent, const aiScene *scene, const Eigen::Vector3d &scale=Eigen::Vector3d::Ones())
 Constructor. More...
 
virtual ~OdeMesh ()
 Destructor. More...
 
void updateEngineData () override
 
const OdeCollisionObjectgetParentCollisionObject () const
 Returns the parent collision object. More...
 
dGeomID getOdeGeomId () const
 Returns the ODE geom ID associated to this object. More...
 
virtual bool isPlaceable () const
 Returns true if the ODE geom is placeable. More...
 

Protected Attributes

const OdeCollisionObjectmParentCollisionObject
 Parent collision object. More...
 
dGeomID mGeomId
 ODE geom ID associated with this object. More...
 

Private Member Functions

void fillArrays (const aiScene *scene, const Eigen::Vector3d &scale=Eigen::Vector3d::Ones())
 

Private Attributes

std::vector< double > mVertices
 Array of vertex values. More...
 
std::vector< double > mNormals
 Array of normals values. More...
 
std::vector< int > mIndices
 Array of index values. More...
 
dTriMeshDataID mOdeTriMeshDataId
 ODE trimesh data. More...
 

Constructor & Destructor Documentation

◆ OdeMesh()

dart::collision::detail::OdeMesh::OdeMesh ( const OdeCollisionObject parent,
const aiScene *  scene,
const Eigen::Vector3d &  scale = Eigen::Vector3d::Ones() 
)

Constructor.

This will hold the vertex data of the triangle mesh

◆ ~OdeMesh()

dart::collision::detail::OdeMesh::~OdeMesh ( )
virtual

Destructor.

Member Function Documentation

◆ fillArrays()

void dart::collision::detail::OdeMesh::fillArrays ( const aiScene *  scene,
const Eigen::Vector3d &  scale = Eigen::Vector3d::Ones() 
)
private

◆ getOdeGeomId()

dGeomID dart::collision::detail::OdeGeom::getOdeGeomId ( ) const
inherited

Returns the ODE geom ID associated to this object.

◆ getParentCollisionObject()

const OdeCollisionObject * dart::collision::detail::OdeGeom::getParentCollisionObject ( ) const
inherited

Returns the parent collision object.

◆ isPlaceable()

bool dart::collision::detail::OdeGeom::isPlaceable ( ) const
virtualinherited

Returns true if the ODE geom is placeable.

Reimplemented in dart::collision::detail::OdePlane.

◆ updateEngineData()

void dart::collision::detail::OdeMesh::updateEngineData ( )
overridevirtual

Reimplemented from dart::collision::detail::OdeGeom.

Member Data Documentation

◆ mGeomId

dGeomID dart::collision::detail::OdeGeom::mGeomId
protectedinherited

ODE geom ID associated with this object.

This geom ID should be set by the concrete classes such as OdeBox and OdeSphere.

◆ mIndices

std::vector<int> dart::collision::detail::OdeMesh::mIndices
private

Array of index values.

◆ mNormals

std::vector<double> dart::collision::detail::OdeMesh::mNormals
private

Array of normals values.

◆ mOdeTriMeshDataId

dTriMeshDataID dart::collision::detail::OdeMesh::mOdeTriMeshDataId
private

ODE trimesh data.

◆ mParentCollisionObject

const OdeCollisionObject* dart::collision::detail::OdeGeom::mParentCollisionObject
protectedinherited

Parent collision object.

◆ mVertices

std::vector<double> dart::collision::detail::OdeMesh::mVertices
private

Array of vertex values.