1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
#![warn( missing_docs, missing_debug_implementations, missing_copy_implementations, trivial_casts, trivial_numeric_casts, unsafe_code, unstable_features, unused_import_braces, unused_qualifications )] //! 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](https://github.com/petgraph/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(); //! ``` //! pub mod geodesic; mod geometry; pub mod platonic_solids; mod polyhedron; mod topology; pub use geometry::*; pub use polyhedron::*;