chrono::ChTriangleMeshShape Class Reference


Class for referencing a triangle mesh shape that can be visualized in some way.

Being a child class of ChAsset, it can be 'attached' to physics items. It also defines flags such as 'draw as wireframe', 'do backface culling' etc. but remember that depending on the type of visualization system (POVray, Irrlich,etc.) these flags might not be supported.

#include <ChTriangleMeshShape.h>

Inheritance diagram for chrono::ChTriangleMeshShape:
Collaboration diagram for chrono::ChTriangleMeshShape:

Public Member Functions

geometry::ChTriangleMeshConnectedGetMesh ()
void SetMesh (const geometry::ChTriangleMeshConnected &mesh)
bool IsWireframe ()
void SetWireframe (bool mw)
bool IsBackfaceCull ()
void SetBackfaceCull (bool mbc)
const std::string & GetName () const
void SetName (const std::string &mname)
const ChVectorGetScale () const
void SetScale (const ChVector<> &mscale)
virtual void ArchiveOUT (ChArchiveOut &marchive)
virtual void ArchiveIN (ChArchiveIn &marchive)
 Method to allow de serialization of transient data from archives.
- Public Member Functions inherited from chrono::ChVisualization
bool IsVisible () const
 Get/Set visible status flag.
void SetVisible (bool mv)
const ChColorGetColor () const
 Get/Set the color of the surface. More...
void SetColor (const ChColor &mc)
float GetFading () const
 Get/Set the fading amount, 0 <= fading <= 1. More...
void SetFading (const float mc)
- Public Member Functions inherited from chrono::ChAsset
virtual void Update (ChPhysicsItem *updater, const ChCoordsys<> &coords)
 This is called by the owner, i.e. More...

Protected Attributes

geometry::ChTriangleMeshConnected trimesh
bool wireframe
bool backface_cull
std::string name
ChVector scale
- Protected Attributes inherited from chrono::ChVisualization
bool visible
ChColor color
float fading

Additional Inherited Members

- Public Attributes inherited from chrono::ChVisualization
ChVector Pos
ChMatrix33 Rot
 Position of Asset.
- Protected Member Functions inherited from chrono::ChVisualization
 ChVisualization ()
 Rotation of Asset. More...