21 #include <ff/PolyhedralComponents.h>
22 #include <ff/Polyhedron.h>
42 const std::vector<R3>& vertices)
47 for (
const R3& vertex : vertices)
48 m_vertices.push_back(vertex - R3{0, 0, z_bottom});
50 pimpl = std::make_unique<ff::Polyhedron>(topology, vertices);
70 return pimpl->volume();
74 return pimpl->radius();
81 pimpl->assert_platonic();
Defines interface IDecoratableBorn.
Abstract base class for rotations.
double BottomZ(const std::vector< R3 > &vertices, const IRotation *rotation)
Calculates the z-coordinate of the lowest vertex after rotation.
double TopZ(const std::vector< R3 > &vertices, const IRotation *rotation)
Calculates the z-coordinate of the highest vertex after rotation.