pyboxbuilder.lid.pattern

Lid through-hole patterns — the shapes a lid is perforated with (FR-023).

Each member of PatternType draws the shape it is named after. That is worth stating because it was not true: the catalog listed 47 members and three shapes, with a _shape_grid_fill that took the shape’s name as an argument and ignored it, hexagons and triangles built from cuboids, and every tessellation wrapped in except (ImportError, …, Exception) around an import of a package that is not in this repo — so a lid asking for LEAF, or PENROSE_TILING_5, or any of the fifteen pentagon tilings, silently came out with square holes.

A pattern that quietly becomes a different pattern is worse than one that is missing: the user sees a plausible lid and never learns the request was dropped. So the catalog here is exactly what is implemented, and a member is added when the geometry to draw it is (FR-000c).

Classes

PatternResult

Compound or multi-material pattern geometry output.

Functions

build_pattern

Build the through-hole or inlaid pattern for a lid.

default_spacing

Return the cell size a pattern uses when the caller names none.

hole_size

Return how big a hole is, given the pitch and the web between them.

tessellating_leaf_path

Return the outline of a leaf that tiles the plane, tip towards +X.