15 #ifndef BORNAGAIN_SAMPLE_HARDPARTICLE_TRUNCATEDCUBE_H
16 #define BORNAGAIN_SAMPLE_HARDPARTICLE_TRUNCATEDCUBE_H
30 std::string
className() const final {
return "TruncatedCube"; }
32 std::vector<ParaMeta>
parDefs() const final
34 return {{
"Length",
"nm",
"untruncated edge length", 0, +
INF, 0},
35 {
"RemovedLength",
"nm",
"edge length removed from one corner", 0, +
INF, 0}};
A cube, with tetrahedral truncation of all corners.
const double & m_removed_length
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.
static const ff::PolyhedralTopology topology
TruncatedCube * clone() const override
Returns a clone of this ISampleNode object.
TruncatedCube(double length, double removed_length)
double removedLength() const