|0.1.0||Mar 11, 2020|
This package is a utility library to create and modify polyhedra.
At this point the functionality is limited to geodesic polyhedra based on icosahedra as well as their corresponding goldberg polyhedra.
Polyhedra is a small library for creating polyhedra. It currently can create the basic platonic solids, geodesic polyhedra based on the icosahedron and their respective Goldberg polyhedra.
Polyhedra allow access to their basic information (vertices, edges and faces) and can be converted into graphs based on the petgraph library.
use polyhedra::VertexGraph; use polyhedra::geodesic::build_icosahedral_goldberg; let subdivisions = 2; let goldberg = build_icosahedral_goldberg(subdivisions); let graph: VertexGraph = goldberg.into();