15 #include "Base/Util/Assert.h"
17 #include <QQuaternion>
28 vs_[0] =
Vector3D(-0.57735026918962573f * E, 0.0f * E, 0.0f);
29 vs_[1] =
Vector3D(0.28867513459481281f * E, 0.5f * E, 0.0f);
30 vs_[2] =
Vector3D(0.28867513459481281f * E, -0.5f * E, 0.0f);
31 vs_[3] =
Vector3D(0.93417235896271578f * E, 0.0f * E, 0.57735026918962562f * E);
33 Vector3D(-0.46708617948135783f * E, 0.80901699437494756f * E, 0.57735026918962562f * E);
35 Vector3D(-0.46708617948135783f * E, -0.80901699437494756f * E, 0.57735026918962562f * E);
36 vs_[6] =
Vector3D(-0.93417235896271578f * E, 0.0f * E, 0.93417235896271589f * E);
37 vs_[7] =
Vector3D(0.46708617948135783f * E, 0.80901699437494756f * E, 0.93417235896271589f * E);
39 Vector3D(0.46708617948135783f * E, -0.80901699437494756f * E, 0.93417235896271589f * E);
40 vs_[9] =
Vector3D(0.57735026918962573f * E, 0.0f * E, 1.5115226281523415f * E);
41 vs_[10] =
Vector3D(-0.28867513459481281f * E, 0.5f * E, 1.5115226281523415f * E);
42 vs_[11] =
Vector3D(-0.28867513459481281f * E, -0.5f * E, 1.5115226281523415f * E);
44 ASSERT(12 == vs_.count());
75 ASSERT(60 == vs.count());
static Mesh makeMesh(const Vertices &vs, Vertices const *ns=nullptr)
QVector< Vert_Normal > Mesh
static Mesh meshIcosahedron()
void addTriangle(const Vector3D &, const Vector3D &, const Vector3D &)