Go to the documentation of this file.
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);
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);
void endTriangles()
Notify that the set of triangles to add is complete. No more triangles can be added,...
void addVertex(const Ogre::Vector3 &position)
Add a vertex to the mesh (no normal defined). If using this function only (not using addTriangle()) i...
Ogre::ManualObject * getManualObject()
Get the manual object created for the mesh.
void clear()
Clear the mesh.
This class allows constructing Ogre shapes manually, from triangle lists.
void addTriangle(unsigned int p1, unsigned int p2, unsigned int p3)
Add a triangle by indexing in the defined vertices.
Ogre::ManualObject * manual_object_
void addNormal(const Ogre::Vector3 &normal)
Add normal for a vertex.
void addColor(const Ogre::ColourValue &color)
Add color for a vertex.
MeshShape(Ogre::SceneManager *scene_manager, Ogre::SceneNode *parent_node=nullptr)
Constructor.
void estimateVertexCount(size_t vcount)
void beginTriangles()
Start adding triangles to the mesh.
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Aug 2 2024 08:43:09