pyboxbuilder.box.features.build_stacking_pyramids¶
-
pyboxbuilder.box.features.build_stacking_pyramids(width: float, length: float, foot_size: float, foot_height: float, foot_inset: float, clearance: float =
0.15, base_z: float =0.0, pyramid_count: int | tuple[int, ...] | None =None, single_pyramid: bool =False, cone: bool =False, point_up: bool =True) Bosl2Solid[source]¶ Return 4 corner 45-degree pyramid (or multi-pyramid grid / cone) male bosses.
- Parameters:¶
- width: float¶
Box width in mm.
- length: float¶
Box length in mm.
- foot_size: float¶
Corner pad footprint width/length in mm.
- foot_height: float¶
Target height of pyramids in mm.
- foot_inset: float¶
Inset from outer box walls in mm.
- clearance: float =
0.15¶ Lateral fit clearance offset per side in mm.
- base_z: float =
0.0¶ Z coordinate of the mounting surface. When
point_up=True, pyramids protrude upward frombase_ztobase_z + h_male. Whenpoint_up=False, pyramids protrude downward frombase_ztobase_z - h_male.- pyramid_count: int | tuple[int, ...] | None =
None¶ Pyramid grid configuration: an
intN (N×N on all 4 corners), a 2-tuple(nx, ny)(nx×ny on all 4 corners), or a 4-tuple(c_fl, c_fr, c_bl, c_br)specifying the grid per corner. When None, auto-computes N so every wall is at 45 degrees.- single_pyramid: bool =
False¶ If True, builds a single 45-degree pyramid per corner (N=1).
- cone: bool =
False¶ If True, uses 45-degree conical frustums instead of square pyramids.
- point_up: bool =
True¶ If True, pyramids taper upward (+Z); if False, taper downward (-Z).