Polyhedra¶
⚙️ Spec sheet → — visual schematic and metrics measured from a real rendered STL.
The five Platonic solids from BOSL2’s polyhedra.scad, built as watertight polyhedra.
regular_polyhedron() builds tetrahedron / cube /
octahedron / dodecahedron / icosahedron (with named convenience methods too), sized by
circumradius, diameter, inradius or side length. The dodecahedron is derived as the dual of the
icosahedron. The Archimedean, Catalan and stellated families are a follow-up.
.. autoclass:: bosl2.polyhedra.Polyhedra
- members:
Examples¶
These mirror the examples in BOSL2’s polyhedra.scad, rendered live through PythonSCAD.
Examples that rely on BOSL2’s attachment/anchor system, or on features not in this port, are omitted.
regular_polyhedron
Tetrahedron:
Polyhedra.regular_polyhedron("tetrahedron", radius=12).show()
Cube:
Polyhedra.regular_polyhedron("cube", radius=12).show()
Octahedron:
Polyhedra.regular_polyhedron("octahedron", radius=12).show()
Dodecahedron:
Polyhedra.regular_polyhedron("dodecahedron", radius=12).show()
Icosahedron:
Polyhedra.regular_polyhedron("icosahedron", radius=12).show()