15 #ifndef BORNAGAIN_SAMPLE_HARDPARTICLE_PYRAMID6_H
16 #define BORNAGAIN_SAMPLE_HARDPARTICLE_PYRAMID6_H
30 std::string
className() const final {
return "Pyramid6"; }
32 std::vector<ParaMeta>
parDefs() const final
35 {
"BaseEdge",
"nm",
"base edge length", 0, +
INF, 0},
36 {
"Height",
"nm",
"height", 0, +
INF, 0},
37 {
"Alpha",
"rad",
"angle between base and a side face", 0.,
M_PI_2 + 0.0000000001, 0}};
A frustum (truncated pyramid) with regular hexagonal base.
const double & m_base_edge
Pyramid6 * clone() const override
Returns a clone of this ISampleNode object.
Pyramid6(double base_edge, double height, double alpha)
static const ff::PolyhedralTopology topology
std::string className() const final
Returns the class name, to be hard-coded in each leaf class that inherits from INode.
std::vector< ParaMeta > parDefs() const final
Returns the parameter definitions, to be hard-coded in each leaf class.