Ogre Procedural
0.3.0 unstable
Procedural Geometry & Textures for Ogre3D
|
This class creates a visualisation of the normals of a TriangleBuffer. More...
#include <ProceduralDebugRendering.h>
Public Types | |
enum | VisualStyle { VS_LINE, VS_ARROW } |
Public Member Functions | |
ShowNormalsGenerator () | |
ShowNormalsGenerator & | setTriangleBuffer (TriangleBuffer *triangleBuffer) |
Sets the input Triangle Buffer. More... | |
ShowNormalsGenerator & | setSize (Ogre::Real size) |
Sets the size of the normals representation (default = 1.0) More... | |
ShowNormalsGenerator & | setVisualStyle (VisualStyle visualStyle) |
Sets the visual style, line or arrow (default = line) More... | |
Ogre::ManualObject * | buildManualObject () const |
Builds the normals representation as a manual object. More... | |
Ogre::MeshPtr | buildMesh (const std::string &name="", const Ogre::String &group="General") const |
Builds the normals representation as a mesh. More... | |
This class creates a visualisation of the normals of a TriangleBuffer.
Procedural::ShowNormalsGenerator::ShowNormalsGenerator | ( | ) |
Ogre::ManualObject* Procedural::ShowNormalsGenerator::buildManualObject | ( | ) | const |
Builds the normals representation as a manual object.
Ogre::InvalidStateException | The input triangle buffer must not be null |
Ogre::InvalidStateException | Scene Manager is not set in OGRE root object |
Ogre::MeshPtr Procedural::ShowNormalsGenerator::buildMesh | ( | const std::string & | name = "" , |
const Ogre::String & | group = "General" |
||
) | const |
Builds the normals representation as a mesh.
ShowNormalsGenerator& Procedural::ShowNormalsGenerator::setSize | ( | Ogre::Real | size | ) |
Sets the size of the normals representation (default = 1.0)
ShowNormalsGenerator& Procedural::ShowNormalsGenerator::setTriangleBuffer | ( | TriangleBuffer * | triangleBuffer | ) |
Sets the input Triangle Buffer.
ShowNormalsGenerator& Procedural::ShowNormalsGenerator::setVisualStyle | ( | VisualStyle | visualStyle | ) |
Sets the visual style, line or arrow (default = line)