[−][src]Module polyhedra::platonic_solids
This module contains functions to create the basic platonic solids.
Example
use polyhedra::platonic_solids::*; let tetrahedron = make_tetrahedron(); let cube = make_cube(); let octahedron = make_octahedron(); let dodecahedron = make_dodecahedron(); let icosahedron = make_icosahedron();
Functions
make_cube | Returns a cube with edge length 2 |
make_dodecahedron | Returns a regular dodecahedron. |
make_icosahedron | Returns a regular icosahedron. |
make_octahedron | Returns an regular octahedron with edge length √2 |
make_tetrahedron | Returns a regular tetrahedron with edge length 2. |