#include <GeometricMesh.h>
Inheritance diagram for GeometricMesh:
Public Member Functions | |
GeometricMesh (Real radius) | |
Constructor. | |
void | createMesh (String MeshName) |
This function generates a Manual Ogre Mesh. | |
Protected Member Functions | |
void | setTriangleNumber (int triangleNumber) |
Use this function to set the number of triangles of the mesh. | |
void | setVertexNumber (int vertexNumber) |
Use this function to set the number of vertices of the mesh. | |
void | addVertexUV (Real radius, Real Vx, Real Vy, Real Vz, Real U=AUTO, Real V=AUTO) |
This function adds a vertex in the Meshbuffer. | |
void | addVertex (Real radius, Real Vx, Real Vy, Real Vz) |
This function adds a vertex in the Meshbuffer. | |
void | addTriangle (int I0, int I1, int I2, bool CCW=true, bool detectborder=false) |
This function adds 3 vertices in the buffer, making a triangle. | |
void | initializeMesh (String MeshName, int vertexNB, int edgesNB) |
This function initialize all the structures and buffers, for creating a manual mesh. | |
void | finalizeMesh () |
This fucntion finalizes the creation of a mesh. |
This class has to be derived for creating the mesh. In your derived class constructor, call the functions setEdgeNumber() and setVertexNumber() to set the topology of your mesh. Then create a function fillMesh() where you will define all the vertices and all the triangles of the mesh.
|
This function adds 3 vertices in the buffer, making a triangle.
|
|
This function adds a vertex in the Meshbuffer. The vertex is defined by its Position + Normal and UV coordinates. Spherical UV mapping is always applied.
|
|
This function adds a vertex in the Meshbuffer. The vertex is defined by its Position + Normal and UV coordinates.
|
|
This function generates a Manual Ogre Mesh.
|
|
This function initialize all the structures and buffers, for creating a manual mesh.
|