WMesh Class Reference
Inheritance diagram for WMesh:

Classes | |
struct | Material |
Material properties. More... | |
struct | Mesh |
Mesh struct. More... | |
struct | Triangle |
Triangle struct. More... | |
struct | Vertex |
Vertex struct. More... | |
Public Member Functions | |
WMesh (World *world, QString name="unamed", const wMatrix &tm=wMatrix::identity()) | |
Create a WMesh. | |
virtual | ~WMesh () |
Destroy this object. | |
WObject * | attachedTo () |
Return the attached WObject (NULL is there isn't) | |
void | attachTo (WObject *obj) |
Attach to the WObject specified,. | |
bool | loadMS3DModel (QString filename) |
Load the mesh from a MS3D file (MilkShape-3D) | |
Material * | materials () |
Return Materials (for now are ignored during rendering) | |
int | materialsCount () |
Number of materials. | |
Mesh * | meshes () |
Return Meshes. | |
int | meshesCount () |
Number of meshes. | |
Triangle * | triangles () |
Return Triangles composing the mesh. | |
int | trianglesCount () |
Number of triangles. | |
Vertex * | vertices () |
Return Vertices composing the triangles of the mesh. | |
int | verticesCount () |
Number of vertices. |
Detailed Description
WMesh class.
\
- Motivation
- WMesh represent a 3D shape using a triangle mesh. It is just for graphic purpose, but it is subclass of WObject and it is contained into a World for share it amongs WCameras and for attach it to other object (like iCub's cover)
- Description
- Warnings
- Warnings
Constructor & Destructor Documentation
Member Function Documentation
WObject* attachedTo | ( | ) | [inline] |
void attachTo | ( | WObject * | obj | ) |
bool loadMS3DModel | ( | QString | filename | ) |
Load the mesh from a MS3D file (MilkShape-3D)
Definition at line 144 of file wmesh.cpp.
Referenced by PhyiCub::PhyiCub().
Material* materials | ( | ) | [inline] |
Triangle* triangles | ( | ) | [inline] |
Vertex* vertices | ( | ) | [inline] |
The documentation for this class was generated from the following files: