pyboxbuilder.compartments.carve.build_compartment_well

pyboxbuilder.compartments.carve.build_compartment_well(placement: CompartmentPlacement, interior: Interior, *, rounded_corners: float = 0.0, bottom_rounding: float = 0.0) → Bosl2Solid[source]

Build a compartment’s well — the part that stays inside the walls.

Parameters:
placement: CompartmentPlacement

Where and how big the well is.

interior: Interior

The box interior it sits in.

rounded_corners: float = 0.0

Radius for the well’s vertical corners.

bottom_rounding: float = 0.0

Radius where the well’s walls meet its floor. A tray wants this — pieces ride up the curve instead of having to be picked out of a square corner — while a card slot wants 0, so the stack sits flat on the floor.

Returns:

The cutout, positioned in the box frame.