Log inGet started
Package

cityGen.package

This package holds more than this page lists. See all of its files in its world.

README.md

districts

The cityGen.districts module generates the districts of a city as closed regions with associated rules. It takes a template's rough district outlines and refines them by pulling points onto nearby arterials, designed places, or the shoreline within a specified snap distance. What remains as a free edge becomes an edge street. The module outputs closed curves for each district, carrying attributes like name, pattern, anchor, area, and all the rules (from cityGen.classes) that govern development within that district. This module is called by cityGen.city.districts to define the city's distinct zones.