pyboxbuilder.compartments.carve.build_compartment_scoop

pyboxbuilder.compartments.carve.build_compartment_scoop(placement: CompartmentPlacement, interior: Interior, scoop_side: ScoopSide = ScoopSide.FRONT, top_z: float | None = None, cut: Cut | None = None) → Bosl2Solid[source]

Build a compartment’s finger scoop — the part that pierces a wall.

The wall thickness is read off the interior frame (its origin is inset by exactly one wall), because the scoop’s face fillets are produced by flaring the sweep’s ends and therefore need the sweep to match the wall it crosses.

Parameters:
placement: CompartmentPlacement

The compartment the scoop belongs to.

interior: Interior

The box interior frame the compartment sits in.

scoop_side: ScoopSide = ScoopSide.FRONT

Which wall the scoop pierces.

top_z: float | None = None

The box’s top face. The cut reaches it so its roll merges into the rim; None falls back to the interior ceiling.

cut: Cut | None = None

What the compartment asked for (FR-006) — kind, side and any measurement it wanted to name. Passed in rather than read off the placement, which does not carry it: reaching for it there returned a default and looked like it worked.

Returns:

The scoop cutout, positioned in the box frame.