8 #include <OgreSingleton.h> 13 typedef std::pair<Ogre::Vector3, Ogre::ColourValue>
VertexPair;
32 v1(_v1), v2(_v2), v3(_v3)
38 return v1 < o.
v1 && v2 < o.
v2 && v3 < o.
v3;
53 return (v1 == o.
v1 && v2 == o.
v2) || (v1 == o.
v2 && v2 == o.
v1);
60 void create(
int recursionLevel);
61 void addToLineIndices(
int baseIndex, std::list<int>* target)
const;
62 int addToVertices(std::list<VertexPair>* target,
const Ogre::Vector3& position,
const Ogre::ColourValue&
colour,
float scale)
const;
63 void addToTriangleIndices(
int baseIndex, std::list<int>* target)
const;
66 int addVertex(
const Ogre::Vector3& vertex);
67 void addLineIndices(
int index0,
int index1);
68 void addTriangleLines(
int index0,
int index1,
int index2);
69 int getMiddlePoint(
int index0,
int index1);
70 void addFace(
int index0,
int index1,
int index2);
72 void removeLineIndices(
int index0,
int index1);
77 std::list<TriangleIndices>
faces;
int index
Definition: IcoSphere.h:79
std::map< int64_t, int > middlePointIndexCache
Definition: IcoSphere.h:78
std::list< TriangleIndices > faces
Definition: IcoSphere.h:77
int v1
Definition: IcoSphere.h:44
bool operator<(const TiXmlString &a, const TiXmlString &b)
Definition: tinystr.h:274
LineIndices(int _v1, int _v2)
Definition: IcoSphere.h:46
int v1
Definition: IcoSphere.h:29
int v3
Definition: IcoSphere.h:29
std::list< int > triangleIndices
Definition: IcoSphere.h:76
Copy-pasted from.
Definition: IcoSphere.h:24
Definition: IcoSphere.h:27
Definition: IcoSphere.h:42
Ogre::ColourValue colour(const btVector3 &color, btScalar alpha)
Definition: OgreBulletUtils.h:41
std::vector< Ogre::Vector3 > vertices
Definition: IcoSphere.h:74
TriangleIndices(int _v1, int _v2, int _v3)
Definition: IcoSphere.h:31
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
std::pair< Ogre::Vector3, Ogre::ColourValue > VertexPair
Definition: IcoSphere.h:13
int v2
Definition: IcoSphere.h:44
constexpr bool operator==(bool x, tribool y)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: tribool.h:117
int v2
Definition: IcoSphere.h:29
std::list< LineIndices > lineIndices
Definition: IcoSphere.h:75