pyboxbuilder.builders.pip_hinge.PrintInPlaceHingeBoxBuilder

class pyboxbuilder.builders.pip_hinge.PrintInPlaceHingeBoxBuilder(label: str, box_id: str | None = None, size: tuple[float, float, float] | None = None, position: tuple[float, float, float] | None = None, stackable: StackableMode | None = None, stackable_shape: StackableShape | None = None, stackable_pyramid_count: int | tuple[int, ...] | None = None, stackable_top_pyramid_count: int | tuple[int, ...] | None = None, stackable_bottom_pyramid_count: int | tuple[int, ...] | None = None, stackable_top: bool = True, stackable_bottom: bool = True, stackable_printer_safe: bool = True, stackable_pattern: PatternType | None = None, stackable_pattern_spacing: float | None = None, stackable_pattern_web: float | None = None, stackable_pattern_border: float | None = None, stackable_thickness: float | None = None, stackable_fit_offset: float = 0.15, stackable_foot_size: float | None = None, stackable_foot_height: float = 1.6, stackable_foot_inset: float | None = None, magnet_type: MagnetType | None = None, magnet_size: tuple[float, float, float] | None = None, final_size: tuple[float, float, float] | None = None, expandable: bool = True, expandable_width: bool = True, expandable_length: bool = True, no_rotate: bool = False, expandable_height: bool = True, wall_thickness: float | None = None, floor_thickness: float | None = None, lid_thickness: float | None = None, rounding: float | None = None, base_rounding: float | None = None, base_chamfer: float | bool | None = None, inner_rounding: float | None = None, lid: LidBuilder | None = None, pattern: PatternBuilder | PatternType | str | None = None, pattern_color: Color | str | None = None, pattern_colors: tuple[Color | str, ...] | list[Color | str] | None = None, backing_pattern: PatternBuilder | PatternType | str | None = None, color: Color | None = None, finger_holes: tuple[FingerHoleBuilder, ...] = (), auto_finger_holes: bool = True, compartments: tuple[CompartmentBuilder, ...] = (), allocates: tuple[tuple[str, int], ...] = (), tilt_to_lift: bool = True, keystone: bool = False, ribbon_channel: bool | None = None, catch_type: CatchType | None = None, catch_size: float | None = None, slide_catch_style: str = 'front', interlock_type: InterlockType | None = None, interlock_clearance: float = 0.15, interlock_size: float | tuple[float, ...] | None = None, interlock_sides: tuple[int | str, ...] | None = None, polygon_sides: int | None = None, polygon_apothem: float | None = None, pip_radial_clearance: float = 0.35, pip_axial_clearance: float = 0.4, pip_cone_angle: float = 45.0, pip_hinge_radius: float = 3.0, pip_bridge_width: float = 0.4, pip_bridge_thickness: float = 0.4, pip_snap_catch: bool = True, pip_snap_width: float = 12.0, pip_snap_diameter: float = 3.0, pip_gap_mm: float = 1.0, hinge_catch_type: HingeCatchType | None = None)[source]

Bases: BoxBuilder

Builder for monolithic print-in-place hinged box type (FR-090).

A single-piece, zero-assembly hinged box where body and lid are laid flat at 180° on the print bed in a single print job, joined by a 3D-printable flexible bridge hinge along the shared rim (z = height / 2.0).

Example

project = Project("PIPHingeDemo")
project.box(
    BoxType.PRINT_IN_PLACE_HINGE,
    "MiniDeckBox",
    size=(70.0, 50.0, 25.0),
    pip_bridge_width=0.40,
    pip_bridge_thickness=0.40,
)
project.show(show_lids=True)
Loading 3-D preview…

⬇ Download STL mesh

hinge_catch_type : HingeCatchType | None = None

Optional hinge catch mechanism override (all HingeCatchType / CatchType values supported).

pip_axial_clearance : float = 0.4

Axial air gap clearance between adjacent hinge knuckles in mm.

pip_bridge_thickness : float = 0.4

Vertical thickness of the print-in-place bridge in mm (default 0.4mm).

pip_bridge_width : float = 0.4

Width of the flexible 3D-printable bridge joining the two halves of the box in mm (minimum 0.4mm).

pip_cone_angle : float = 45.0

Self-supporting overhang angle for captive hinge cones in degrees.

pip_gap_mm : float = 1.0

Gap between the two box halves on the print bed in mm (default 1.0mm, matching OpenSCAD toolkit).

pip_hinge_radius : float = 3.0

Outer radius of the hinge knuckle barrel in mm.

pip_radial_clearance : float = 0.35

Radial air gap clearance around captive hinge pins in mm.

pip_snap_catch : bool = True

Include front retention catch on the front rims.

pip_snap_diameter : float = 3.0

Diameter of the snap ridge in mm.

pip_snap_width : float = 12.0

Length of the snap catch tab in mm.