threejs-worldgen
    Preparing search index...

    Interface CityPlan

    Everything generated for one settlement, before any rendering. Plain data plus the road graph.

    interface CityPlan {
        architecture: ArchitectureName;
        blocks: Block[];
        buildings: Building[];
        center: [number, number];
        districts: DistrictMap;
        farm: Farm | null;
        graph: RoadGraph;
        lots: PlannedLot[];
        population: number;
        profiles: RoadProfile[];
        radius: number;
        site: Site;
        style: RoadStyle;
    }
    Index
    architecture: ArchitectureName

    Architecture used.

    blocks: Block[]

    City blocks.

    buildings: Building[]

    Buildings (with base heights).

    center: [number, number]

    Centre (frame-local).

    districts: DistrictMap

    District layout.

    farm: Farm | null

    A farmstead's yard, fields, tractor spots and props (null for other settlements, and for a farm with no dry, gentle ground).

    graph: RoadGraph

    Road network (planar graph); node heights are graded road surface heights.

    lots: PlannedLot[]

    Lots.

    population: number

    Estimated residents.

    profiles: RoadProfile[]

    Graded centreline of every road edge, by edge id.

    radius: number

    Radius used, metres.

    site: Site

    Ground under the settlement.

    style: RoadStyle

    Street layout used.