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

FF cantellated cube: ditto

parent 28d15830
No related branches found
No related tags found
No related merge requests found
...@@ -75,18 +75,18 @@ void FormFactorCantellatedCube::onChange() ...@@ -75,18 +75,18 @@ void FormFactorCantellatedCube::onChange()
throw std::runtime_error(ostr.str()); throw std::runtime_error(ostr.str());
} }
double a = m_length / 2; double a = m_length / 2;
double b = m_removed_length; double c = a - m_removed_length;
setPolyhedron(topology, -a, {{-a + b, -a + b, +a}, // point 0 setPolyhedron(topology, -a, {{-c, -c, +a}, // point 0
{+a - b, -a + b, +a}, {+a - b, +a - b, +a}, {-a + b, +a - b, +a}, {+c, -c, +a}, {+c, +c, +a}, {-c, +c, +a},
{-a, -a + b, +a - b}, // point 4 {-a, -c, +c}, // point 4
{+a - b, -a, +a - b}, {+a, +a - b, +a - b}, {-a + b, +a, +a - b}, {+c, -a, +c}, {+a, +c, +c}, {-c, +a, +c},
{-a + b, -a, +a - b}, // point 8 {-c, -a, +c}, // point 8
{+a, -a + b, +a - b}, {+a - b, +a, +a - b}, {-a, +a - b, +a - b}, {+a, -c, +c}, {+c, +a, +c}, {-a, +c, +c},
{-a, -a + b, -a + b}, // point 12 {-a, -c, -c}, // point 12
{+a - b, -a, -a + b}, {+a, +a - b, -a + b}, {-a + b, +a, -a + b}, {+c, -a, -c}, {+a, +c, -c}, {-c, +a, -c},
{-a + b, -a, -a + b}, // point 16 {-c, -a, -c}, // point 16
{+a, -a + b, -a + b}, {+a - b, +a, -a + b}, {-a, +a - b, -a + b}, {+a, -c, -c}, {+c, +a, -c}, {-a, +c, -c},
{-a + b, -a + b, -a}, // point 20 {-c, -c, -a}, // point 20
{+a - b, -a + b, -a}, {+a - b, +a - b, -a}, {-a + b, +a - b, -a}}); {+c, -c, -a}, {+c, +c, -a}, {-c, +c, -a}});
} }
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