FoundationPartsPrimitivesPattern Helpers

Pattern helpers

Pattern helpers are pure-Python factories that emit a list of sketch-anchored Points — iterate to place N operations.

GridLocations(center, x_pitch, y_pitch, n_x, n_y).positions() -> list[Point]
HexLocations(center, pitch, n_radial).positions() -> list[Point]
PolarLocations(center, radius, count, start_angle_deg=0, angular_range_deg=360).positions() -> list[Point]
Locations(center, [(dx, dy), ...]).positions() -> list[Point]

HexLocations(n_radial=k) produces a centered-hex tiling with 3·k²−3·k+1 points. PolarLocations uses range/count spacing for full circles and range/(count-1) for partial arcs.

These are helpers, not DAG nodes — they don’t show up in the serialized DAG, only the operations they produce do.