30 #ifndef OGRE_TOOLS_MESH_SHAPE_H 31 #define OGRE_TOOLS_MESH_SHAPE_H 79 MeshShape(Ogre::SceneManager* scene_manager, Ogre::SceneNode* parent_node =
NULL);
83 void estimateVertexCount(
size_t vcount);
86 void beginTriangles();
94 void addVertex(
const Ogre::Vector3& position);
102 void addVertex(
const Ogre::Vector3& position,
const Ogre::Vector3& normal);
110 void addVertex(
const Ogre::Vector3& position,
const Ogre::Vector3& normal,
const Ogre::ColourValue &color);
113 void addNormal(
const Ogre::Vector3 &normal);
116 void addColor(
const Ogre::ColourValue &color);
119 void addTriangle(
unsigned int p1,
unsigned int p2,
unsigned int p3);
130 return manual_object_;
Ogre::ManualObject * getManualObject()
Get the manual object created for the mesh.
Ogre::ManualObject * manual_object_
This class allows constructing Ogre shapes manually, from triangle lists.