#include <SO3BaseMeshsTools.h>
Static Public Member Functions | |
| static void | CreateSphere (const Ogre::String &strName, float radius, int nRings, int nSegments, bool bNormals, bool bTexCoords, Ogre::String groupName=Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME) |
| static void | CreateSphere (Ogre::VertexData *&vertexData, Ogre::IndexData *&indexData, float radius, int nRings, int nSegments, bool bNormals, bool bTexCoords) |
| static void | CreateCone (const Ogre::String &strName, float radius, float height, int nVerticesInBase, Ogre::String groupName=Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME) |
| static void | CreateCone (Ogre::VertexData *&vertexData, Ogre::IndexData *&indexData, float radius, float height, int nVerticesInBase) |
| static void | CreateOctahedron (const Ogre::String &strName, float baseLenght, float bottomDistance, float upDistance, Ogre::String groupName=Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME) |
| static void | CreateOctahedron (Ogre::VertexData *&vertexData, Ogre::IndexData *&indexData, float baseLenght, float bottomDistance, float upDistance) |
| static void | CreateQuad (Ogre::VertexData *&vertexData) |
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.
| void SBaseMeshsTools::CreateCone | ( | const Ogre::String & | strName, |
| float | radius, | ||
| float | height, | ||
| int | nVerticesInBase, | ||
| Ogre::String | groupName = Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME |
||
| ) | [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 144 of file SO3BaseMeshsTools.cpp.
| void SBaseMeshsTools::CreateCone | ( | Ogre::VertexData *& | vertexData, |
| Ogre::IndexData *& | indexData, | ||
| float | radius, | ||
| float | height, | ||
| int | nVerticesInBase | ||
| ) | [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 161 of file SO3BaseMeshsTools.cpp.
| void SBaseMeshsTools::CreateOctahedron | ( | const Ogre::String & | strName, |
| float | baseLenght, | ||
| float | bottomDistance, | ||
| float | upDistance, | ||
| Ogre::String | groupName = Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME |
||
| ) | [static] |
Create a octahedron Mesh (http://en.wikipedia.org/wiki/Octahedron) with a given name.
| baseLenght | 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. |
Definition at line 220 of file SO3BaseMeshsTools.cpp.
| void SBaseMeshsTools::CreateOctahedron | ( | Ogre::VertexData *& | vertexData, |
| Ogre::IndexData *& | indexData, | ||
| float | baseLenght, | ||
| float | bottomDistance, | ||
| float | upDistance | ||
| ) | [static] |
Fill up a fresh copy of VertexData and IndexData with a octahedron's coords.
Definition at line 243 of file SO3BaseMeshsTools.cpp.
| void SBaseMeshsTools::CreateQuad | ( | Ogre::VertexData *& | vertexData ) | [static] |
Fill up a fresh copy of VertexData with a normalized quad
Definition at line 302 of file SO3BaseMeshsTools.cpp.
| void SBaseMeshsTools::CreateSphere | ( | const Ogre::String & | strName, |
| float | radius, | ||
| int | nRings, | ||
| int | nSegments, | ||
| bool | bNormals, | ||
| bool | bTexCoords, | ||
| Ogre::String | groupName = Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME |
||
| ) | [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.
| void SBaseMeshsTools::CreateSphere | ( | Ogre::VertexData *& | vertexData, |
| Ogre::IndexData *& | indexData, | ||
| float | radius, | ||
| int | nRings, | ||
| int | nSegments, | ||
| bool | bNormals, | ||
| bool | bTexCoords | ||
| ) | [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 51 of file SO3BaseMeshsTools.cpp.
1.7.2