Skip to main content

Crate use_polyhedron

Crate use_polyhedron 

Source
Expand description

§use-polyhedron

Polyhedron primitives for the RustUse geometry workspace.

use-polyhedron is the general 3D polyhedron crate. It starts with vertex, edge, and face records plus count helpers.

§Example

use use_polyhedron::Polyhedron;

let polyhedron = Polyhedron::from_counts(8, 12, 6).expect("valid counts");

assert_eq!(polyhedron.euler_characteristic(), 2);

Structs§

Edge
A polyhedron edge represented by vertex indices.
Polyhedron
A polyhedron count summary.
PolyhedronFace
A polyhedron face record represented by vertex indices.
Vertex
A polyhedron vertex.