SO3Engine
|
#include <SO3BaseMeshsTools.h>
Static Public Member Functions | |
static Ogre::MeshPtr | CreateSphere (const Ogre::String &strName, float radius, int nRings, int nSegments, bool bNormals, bool bTexCoords, Ogre::String groupName=Ogre::RGN_DEFAULT) |
static void | CreateSphere (Ogre::VertexData *&vertexData, Ogre::IndexData *&indexData, float radius, int nRings, int nSegments, bool bNormals, bool bTexCoords) |
static Ogre::MeshPtr | CreateCone (const Ogre::String &strName, float radius, float height, int nVerticesInBase, Ogre::String groupName=Ogre::RGN_DEFAULT) |
static void | CreateCone (Ogre::VertexData *&vertexData, Ogre::IndexData *&indexData, float radius, float height, int nVerticesInBase) |
static Ogre::MeshPtr | CreateOctahedron (const Ogre::String &strName, float baseLength, float bottomDistance, float upDistance, Ogre::String groupName=Ogre::RGN_DEFAULT) |
static void | CreateOctahedron (Ogre::VertexData *&vertexData, Ogre::IndexData *&indexData, float baseLength, float bottomDistance, float upDistance) |
static void | CreateQuad (Ogre::VertexData *&vertexData) |
Detailed Description
Helper functions to create base shapes meshs. This class do not need to be instanciated, as all her member functions are static.
Definition at line 37 of file SO3BaseMeshsTools.h.
Member Function Documentation
◆ CreateCone() [1/2]
|
static |
Create a cone Mesh with a given name, radius and number of vertices in base Created cone will have its head at 0,0,0, and will 'expand to' positive y
Definition at line 145 of file SO3BaseMeshsTools.cpp.
◆ CreateCone() [2/2]
|
static |
Fill up a fresh copy of VertexData and IndexData with a cone's coords given the radius and number of vertices in base
Definition at line 164 of file SO3BaseMeshsTools.cpp.
◆ CreateOctahedron() [1/2]
|
static |
Create a octahedron Mesh (http://en.wikipedia.org/wiki/Octahedron) with a given name.
- Parameters
-
baseLength the length of one edge of the square base. bottomDistance the distance, from the sqare base center, to the bottom pyramidal vertex. upDistance the distance, from the sqare base center, to the up pyramidal vertex.
- Remarks
- Created octahedron will have its bottom vertex at 0,0,0, and will 'expand to' positive y
Definition at line 253 of file SO3BaseMeshsTools.cpp.
◆ CreateOctahedron() [2/2]
|
static |
Fill up a fresh copy of VertexData and IndexData with a octahedron's coords.
Definition at line 277 of file SO3BaseMeshsTools.cpp.
◆ CreateQuad()
|
static |
Fill up a fresh copy of VertexData with a normalized quad
Definition at line 392 of file SO3BaseMeshsTools.cpp.
◆ CreateSphere() [1/2]
|
static |
Create a sphere Mesh with a given name, radius, number of rings and number of segments
Definition at line 35 of file SO3BaseMeshsTools.cpp.
◆ CreateSphere() [2/2]
|
static |
Fill up a fresh copy of VertexData and IndexData with a sphere's coords given the number of rings and the number of segments
Definition at line 52 of file SO3BaseMeshsTools.cpp.
The documentation for this class was generated from the following files:
- include/SO3Utils/SO3BaseMeshsTools.h
- src/SO3Utils/SO3BaseMeshsTools.cpp
Generated by 1.9.8