|
QSDK 1.1 Documentation |
#include <Q/q.h>
Inheritance diagram for Q::Mesh:

Public Member Functions | |
| Mesh () | |
| Mesh (const char *name) | |
| unsigned int | vertexCount () const |
| unsigned int | triangleCount () const |
| unsigned int | wedgeCount () const |
| bool | collideable () const |
| Utils::Result | setCollideable (bool b) |
| TriangleIterator | triangles () |
| VertexIterator | vertices () |
| WedgeIterator | wedges () |
| Utils::Result | addBox (Maths::Box3f box, const Shader &s) const |
| Utils::Result | addRod (const Maths::Vec3f &start, const Maths::Vec3f &end, float radius, const Shader &s) const |
Static Public Member Functions | |
| Mesh | create (const char *name, const Database &db=Database()) |
| Mesh | find (const char *name) |
| ClassType | classType () |
| Mesh | cast (const ObjectBase &) |
A Mesh object is a rigid collection of polygons. It contains vertices representing the positions of the triangles, wedges representing the color and texture-coordinates of the triangles and a list of the triangles themselves. Access to these lists is through their respective iterators.
|
|
Create a null mesh reference. |
|
|
Search the currently attached databases for a mesh with the given name. |
|
||||||||||||
|
Add an axis-aligned box using the shader |
|
||||||||||||||||||||
|
Add an approximation of a cylinder of radius |
|
|
If the object referenced by
Reimplemented from Q::Geom. |
|
|
Return the type for this class |
|
|
Return |
|
||||||||||||
|
Create a new mesh named |
|
|
Search the currently attached databases for a mesh with the given name and return that object, if it exists. |
|
|
Set the collidability properties (i.e. collidee and collider) of the mesh based on the value of
|
|
|
Return the number of triangles in the mesh. |
|
|
Return an iterator that can be used to examine and edit the triangles for a mesh. |
|
|
Return the number of vertices in the mesh. |
|
|
Return an iterator that can be used to examine and edit the vertices for a mesh. |
|
|
Return the number of wedges in the mesh. |
|
|
Return an iterator that can be used to examine and edit the wedges for a mesh. |
|
|
|
Qube Software Limited © 2000-2004
|
|