15 #ifndef BORNAGAIN_SAMPLE_HARDPARTICLE_PYRAMID3_H
16 #define BORNAGAIN_SAMPLE_HARDPARTICLE_PYRAMID3_H
30 std::string
className() const final {
return "Pyramid3"; }
32 std::vector<ParaMeta>
parDefs() const final
35 {
"BaseEdge",
"nm",
"edge of base triangle", 0, +
INF, 0},
36 {
"Height",
"nm",
"height of frustum", 0, +
INF, 0},
37 {
"Alpha",
"rad",
"angle between base and a side face", 0.,
M_PI_2 + 0.0000000001, 0}};
A frustum with equilateral trigonal base.
const double & m_base_edge
Pyramid3 * 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
Pyramid3(double base_edge, double height, double alpha)
std::vector< ParaMeta > parDefs() const final
Returns the parameter definitions, to be hard-coded in each leaf class.