#geodesic #goldberg #polyhedron #basic-information #utility

polyhedra

Polyhedra is a small library for creating polyhedra

1 unstable release

0.1.0 Mar 11, 2020

#2 in #goldberg

Download history 3/week @ 2023-11-10 3/week @ 2023-11-17 2/week @ 2023-11-24 5/week @ 2023-12-01 1/week @ 2023-12-15 2/week @ 2023-12-22 1/week @ 2024-01-12 1/week @ 2024-01-19 1/week @ 2024-01-26 1/week @ 2024-02-02 5/week @ 2024-02-09 18/week @ 2024-02-16 34/week @ 2024-02-23

58 downloads per month

Apache-2.0 OR MIT

45KB
1K SLoC

Polyhedra

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.


lib.rs:

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.

Example

use polyhedra::VertexGraph;
use polyhedra::geodesic::build_icosahedral_goldberg;

let subdivisions = 2;
let goldberg = build_icosahedral_goldberg(subdivisions);
let graph: VertexGraph = goldberg.into();

Dependencies

~6.5MB
~127K SLoC