15 #ifndef BORNAGAIN_SAMPLE_HARDPARTICLE_PYRAMID2_H
16 #define BORNAGAIN_SAMPLE_HARDPARTICLE_PYRAMID2_H
30 std::string
className() const final {
return "Pyramid2"; }
32 std::vector<ParaMeta>
parDefs() const final
34 return {{
"Length",
"nm",
"side length of base in x direction", 0, +
INF, 0},
35 {
"Width",
"nm",
"side length of base in y direction", 0, +
INF, 0},
36 {
"Height",
"nm",
"height", 0, +
INF, 0},
37 {
"Alpha",
"rad",
"angle between base and any side face", 0.,
M_PI_2, 0}};
A frustum (truncated pyramid) with rectangular base.
Pyramid2(double length, double width, double height, double alpha)
std::vector< ParaMeta > parDefs() const final
Returns the parameter definitions, to be hard-coded in each leaf class.
Pyramid2 * clone() const override
Returns a clone of this ISampleNode object.
std::string className() const final
Returns the class name, to be hard-coded in each leaf class that inherits from INode.
static const ff::PolyhedralTopology topology