Skip to main content

Module model

Module model 

Source

Structs§

MassProperties
Volumetric mass properties of a terminal.
Material
Material stamped on a Terminal by a Mat("...") grammar op.
ShapeModel
The output of a shape grammar derivation.
SnapPlane
A snap-plane recorded during derivation.
Terminal
A fully-resolved terminal node in the shape model.

Enums§

FaceProfile
The 2D profile shape of a terminal face, used by renderers to construct geometry.

Functions§

compute_mass_properties
Computes MassProperties for a terminal given its scope, face profile, and material density. Returns None if the geometry is degenerate.
taper_to_profile
Converts a legacy taper coefficient to the closest FaceProfile.