15 #ifndef BORNAGAIN_SAMPLE_HARDPARTICLE_PYRAMID4_H
16 #define BORNAGAIN_SAMPLE_HARDPARTICLE_PYRAMID4_H
30 std::string
className() const final {
return "Pyramid4"; }
32 std::vector<ParaMeta>
parDefs() const final
34 return {{
"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, 0}};
A frustum with a quadratic base.
const double & m_base_edge
std::vector< ParaMeta > parDefs() const final
Returns the parameter definitions, to be hard-coded in each leaf class.
std::string className() const final
Returns the class name, to be hard-coded in each leaf class that inherits from INode.
Pyramid4 * clone() const override
Returns a clone of this ISampleNode object.
Pyramid4(double base_edge, double height, double alpha)
static const ff::PolyhedralTopology topology