30 #ifndef OGRE_TOOLS_MESH_SHAPE_H 31 #define OGRE_TOOLS_MESH_SHAPE_H 78 MeshShape(Ogre::SceneManager* scene_manager, Ogre::SceneNode* parent_node =
nullptr);
82 void estimateVertexCount(
size_t vcount);
85 void beginTriangles();
93 void addVertex(
const Ogre::Vector3& position);
101 void addVertex(
const Ogre::Vector3& position,
const Ogre::Vector3& normal);
110 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);
131 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.