Orxonox  0.0.5 Codename: Arcturus
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
orxonox::IcoSphere Class Reference

Copy-pasted from. More...

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/tools/IcoSphere.h>

Classes

struct  LineIndices
 
struct  TriangleIndices
 

Public Member Functions

 IcoSphere ()
 
 ~IcoSphere ()
 
void addToLineIndices (int baseIndex, std::list< int > *target) const
 
void addToTriangleIndices (int baseIndex, std::list< int > *target) const
 
int addToVertices (std::list< VertexPair > *target, const Ogre::Vector3 &position, const Ogre::ColourValue &colour, float scale) const
 
void create (int recursionLevel)
 

Private Member Functions

void addFace (int index0, int index1, int index2)
 
void addLineIndices (int index0, int index1)
 
void addTriangleLines (int index0, int index1, int index2)
 
int addVertex (const Ogre::Vector3 &vertex)
 
int getMiddlePoint (int index0, int index1)
 
void removeLineIndices (int index0, int index1)
 

Private Attributes

std::list< TriangleIndicesfaces
 
int index
 
std::list< LineIndiceslineIndices
 
std::map< int64_t, int > middlePointIndexCache
 
std::list< int > triangleIndices
 
std::vector< Ogre::Vector3 > vertices
 

Detailed Description

Copy-pasted from.

This source code is released into the Public Domain.

Modified by Fabian 'x3n' Landau

Constructor & Destructor Documentation

orxonox::IcoSphere::IcoSphere ( )
orxonox::IcoSphere::~IcoSphere ( )

Member Function Documentation

void orxonox::IcoSphere::addFace ( int  index0,
int  index1,
int  index2 
)
private
void orxonox::IcoSphere::addLineIndices ( int  index0,
int  index1 
)
private
void orxonox::IcoSphere::addToLineIndices ( int  baseIndex,
std::list< int > *  target 
) const
void orxonox::IcoSphere::addToTriangleIndices ( int  baseIndex,
std::list< int > *  target 
) const
int orxonox::IcoSphere::addToVertices ( std::list< VertexPair > *  target,
const Ogre::Vector3 &  position,
const Ogre::ColourValue &  colour,
float  scale 
) const
void orxonox::IcoSphere::addTriangleLines ( int  index0,
int  index1,
int  index2 
)
private
int orxonox::IcoSphere::addVertex ( const Ogre::Vector3 &  vertex)
private
void orxonox::IcoSphere::create ( int  recursionLevel)
int orxonox::IcoSphere::getMiddlePoint ( int  index0,
int  index1 
)
private
void orxonox::IcoSphere::removeLineIndices ( int  index0,
int  index1 
)
private

Member Data Documentation

std::list<TriangleIndices> orxonox::IcoSphere::faces
private
int orxonox::IcoSphere::index
private
std::list<LineIndices> orxonox::IcoSphere::lineIndices
private
std::map<int64_t, int> orxonox::IcoSphere::middlePointIndexCache
private
std::list<int> orxonox::IcoSphere::triangleIndices
private
std::vector<Ogre::Vector3> orxonox::IcoSphere::vertices
private

The documentation for this class was generated from the following files: