pyboxbuilder.lid.tilings

Tile geometry for the lid patterns that tessellate (FR-023).

This module answers one question — what shapes cover this area, and where — and answers it in plain coordinates. It builds no solids and knows nothing about lids, webs or thickness; pyboxbuilder.lid.pattern takes the polygons from here and cuts them.

That split is what makes the tilings checkable. “It tiles” is a statement about polygons, and it is testable as arithmetic: the tiles’ areas sum to the area they cover, and no two of them overlap. A tiling that is only ever seen as a rendered lid can be wrong in ways nobody notices until it prints.

Classes

Tile

One tile: its vertices, anticlockwise, in the tiling's own frame.

Functions

chevron_tiling

Tile an area with interlocking 60°/120° chevron / herringbone rhombi.

multigrid_colored_tiling

Return (vertices, color_idx) for each rhombus in de Bruijn's multigrid tiling.

multigrid_tiling

Tile an area with rhombi, by de Bruijn's multigrid method.

polygon_area

Return a polygon's area by the shoelace formula.

stepped_cube_tiling

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

tumbling_blocks_tiling

Tile an area with the classic 3-rhombus isometric cube tessellation (tumbling blocks).