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

Pyramid6 ditto

parent f1314444
No related branches found
No related tags found
1 merge request!1187adapt to changes in libff: factory functions moved to ff/Make
...@@ -63,7 +63,7 @@ std::string Pyramid6::validate() const ...@@ -63,7 +63,7 @@ std::string Pyramid6::validate() const
double bs = b / 2; double bs = b / 2;
double bc = b * sqrt(3) / 2; double bc = b * sqrt(3) / 2;
double zcom = m_height * (.5 - 2 * r / 3 + r * r / 4) / (1 - r + r * r / 3); // center of mass double zcom = m_height / 4 * (a * a + 2 * a * b + 3 * b * b) / (a * a + a * b + b * b);
setPolyhedron(topology, -zcom, setPolyhedron(topology, -zcom,
{// base: {// base:
......
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