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()

⬇ Download STL mesh

Cube:

Polyhedra.regular_polyhedron("cube", radius=12).show()

⬇ Download STL mesh

Octahedron:

Polyhedra.regular_polyhedron("octahedron", radius=12).show()

⬇ Download STL mesh

Dodecahedron:

Polyhedra.regular_polyhedron("dodecahedron", radius=12).show()

⬇ Download STL mesh

Icosahedron:

Polyhedra.regular_polyhedron("icosahedron", radius=12).show()

⬇ Download STL mesh