20 {{0, 1, 7, 6},
false},
21 {{1, 2, 8, 7},
false},
22 {{2, 3, 9, 8},
false},
23 {{3, 4, 10, 9},
false},
24 {{4, 5, 11, 10},
false},
25 {{5, 0, 6, 11},
false},
26 {{6, 7, 8, 9, 10, 11},
true}},
32 "frustum with regular hexagonal base",
33 {{
"BaseEdge",
"nm",
"base edge length", 0, +
INF, 0},
34 {
"Height",
"nm",
"height", 0, +
INF, 0},
35 {
"Alpha",
"rad",
"angle between base and a side face", 0.,
M_PI_2, 0}}},
62 if (!std::isfinite(cot_alpha) || cot_alpha < 0)
63 throw std::runtime_error(
"pyramid angle alpha out of bounds");
66 std::ostringstream ostr;
67 ostr <<
"Incompatible parameters in Cone6 ";
70 ostr <<
", alpha[rad]:" <<
m_alpha <<
")";
71 throw std::runtime_error(ostr.str());
76 double ac = a * sqrt(3) / 2;
77 double b = a * (1 - r);
79 double bc = b * sqrt(3) / 2;
81 double zcom =
m_height * (.5 - 2 * r / 3 + r * r / 4) / (1 - r + r * r / 3);
Defines M_PI and some more mathematical constants.
Defines functions in namespace Math.
static SlicingEffects computeSlicingEffects(ZLimits limits, const kvector_t &position, double height)
Helper method for slicing.
Abstract base class for rotations.
For internal use in IFormFactorPolyhedron.
Class that contains upper and lower limits of the z-coordinate for the slicing of form factors.
double cot(double x)
cotangent function: