Skip to content

five-on-it / packages/catalogue/src/city/checks

packages/catalogue/src/city/checks ​

What a city spec's network must not do, found before Blender builds anything: the four checks of network.py (a road shorter than it is wide, a bend tighter than its width allows, two junctions too near for their rounded corners, roads meeting too sharply to round) and what Blender let through silently: a road leaving the map, an end that stops short of a road without joining it, two roads running so near that no pavement fits between their kerbs, a river crossed at a shallow angle, an end in the water, roads meeting over the water, a street of the town climbing a hill, a climb too steep. Each is said at the spec's path of the road it is about, with where on the map.

Functions ​