pyboxbuilder.compartments.carve¶
Turn a laid-out set of compartments into the solid that gets cut from a body.
layout_compartments decides where things go; this module builds what is removed. It handles three kinds of compartment:
a plain rectangular well (optionally with rounded corners and a finger scoop),
a silhouette well driven by shape_file,
an element pack — many individual silhouettes at their own offsets, rotations and depths inside one bounding box (FR-004b).
Everything is returned in the box’s own coordinate frame, so a caller only has to subtract it from the body.
Functions
Build a compartment's finger scoop — the part that pierces a wall. |
|
Build a compartment's well — the part that stays inside the walls. |
|
Union the cutouts for every placed compartment. |
|
Build every coloured positive insert across the placed compartments. |
|
Z of a compartment's floor. |
|
Which wall a scoop goes in when the compartment does not say. |
|
Return a tall prism over the interior footprint, used to clip compartments. |
|
Return the open volume above the interior ceiling — the box's mouth. |
|
Return the radius for a tray well's vertical corners and its floor. |