Skip to main content

Crate use_johnson_solid

Crate use_johnson_solid 

Source
Expand description

§use-johnson-solid

Johnson solid identifiers for the RustUse geometry workspace.

use-johnson-solid models the J1 through J92 identifiers and selected names without storing coordinates or construction algorithms.

§Example

use use_johnson_solid::{JohnsonSolid, JohnsonSolidId};

let solid = JohnsonSolid::new(JohnsonSolidId::new(1).expect("valid id"));

assert_eq!(solid.id().label(), "J1");
assert_eq!(solid.name(), Some("square pyramid"));

Structs§

JohnsonSolid
A Johnson solid descriptor.
JohnsonSolidId
A Johnson solid identifier from J1 through J92.