Skip to main content

Module shape

Module shape 

Source
Expand description

Parametric shape definitions โ€” type-safe, never loses dimension info.

Unlike the current PrimitiveShape + HashMap<String, f32> approach, dimensions are encoded directly in each variant. This survives serialization roundtrips (unlike glTF export which flattens to triangles).

Enumsยง

PrimitiveShapeKind
Maps to the legacy PrimitiveShape enum for compatibility with gen commands.
Shape
A parametric primitive shape with inline dimensions.