Skip to content
Snippets Groups Projects
Commit e8f8de7d authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

format one file

parent 127263c6
No related branches found
No related tags found
1 merge request!1065F3 is now an alias for QVector3
Pipeline #76444 canceled
......@@ -45,12 +45,12 @@ Geometry::Mesh Geometry::meshDodecahedron()
v = v * F;
// face down
auto q = QQuaternion::rotationTo(F3(0,0,-1),
F3::crossProduct(vs_.at(8) - vs_.at(0), vs_.at(10) - vs_.at(0)));
auto q = QQuaternion::rotationTo(
F3(0, 0, -1), F3::crossProduct(vs_.at(8) - vs_.at(0), vs_.at(10) - vs_.at(0)));
for (int i = 0; i < 20; ++i) {
vs_[i] = q.rotatedVector(vs_.at(i));
vs_[i].setZ( vs_[i].z() + 0.5f * std::sqrt(G1));
// shift the bottom of the dodecahedron to z=0 plane
vs_[i].setZ(vs_[i].z() + 0.5f * std::sqrt(G1));
// shift the bottom of the dodecahedron to z=0 plane
}
Vertices vs;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment