21 {{0, 1, 7, 6},
false},
22 {{1, 2, 8, 7},
false},
23 {{2, 3, 9, 8},
false},
24 {{3, 4, 10, 9},
false},
25 {{4, 5, 11, 10},
false},
26 {{5, 0, 6, 11},
false},
27 {{6, 7, 8, 9, 10, 11},
true}},
33 "frustum with regular hexagonal base",
34 {{
"BaseEdge",
"nm",
"base edge length", 0, +
INF, 0},
35 {
"Height",
"nm",
"height", 0, +
INF, 0},
36 {
"Alpha",
"rad",
"angle between base and a side face", 0.,
M_PI_2, 0}}},
38 m_base_edge(m_P[0]), m_height(m_P[1]), m_alpha(m_P[2])
61 if (!std::isfinite(cot_alpha) || cot_alpha < 0)
65 std::ostringstream ostr;
66 ostr <<
"Incompatible parameters in Cone6 ";
69 ostr <<
", alpha[rad]:" <<
m_alpha <<
")";
75 double ac = a * sqrt(3) / 2;
76 double b = a * (1 - r);
78 double bc = b * sqrt(3) / 2;
80 double zcom =
m_height * (.5 - 2 * r / 3 + r * r / 4) / (1 - r + r * r / 3);
Defines many exception classes in namespace Exceptionss.
Defines M_PI and some more mathematical constants.
Defines namespace MathFunctions.
Pure virtual interface 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: