Log inGet started
Package

blocks.module

README.md

blocks

The cityGen.blocks module identifies and defines the building blocks of a city from its road graph. It processes each face of the planar graph (excluding water and the map's exterior) and insets them to create building lines, considering road widths and district-specific quay distances along the shore. Dead-end ways within a face are preserved as inner courts. Each block is represented as a closed curve with attributes like ID, district, kind (e.g., built, yard, park), area, and whether it's waterside. This module is called by cityGen.city.blocks to generate the city's building parcels.