pyboxbuilder.lid.tilings.stepped_cube_tiling

pyboxbuilder.lid.tilings.stepped_cube_tiling(width: float, length: float, edge: float) → list[tuple[list[tuple[float, float]], int]][source]

Tile an area with the 4-part stepped 3D cube & diamond rhombic tessellation.

Every tile is a 60°/120° rhombus of side length edge (area √3/2 * edge²), arranged in repeating cells of width √3 * edge and height 2 * edge:

  • 0: Peak horizontal diamond (top of the stepped chevron band).

  • 1: Valley horizontal diamond (nested between peak diamonds, forming the top face of each 3D cube).

  • 2: Left-leaning vertical rhombus (left illuminated face of each 3D cube).

  • 3: Right-leaning vertical rhombus (right shaded face of each 3D cube).

Together the four rhombi partition the plane edge-to-edge with zero overlap.