threejs-worldgen
    Preparing search index...

    Function planCity

    • Plans a whole settlement: samples the ground, grows roads, grades them, extracts blocks, splits lots and plans buildings. A generator that yields every few milliseconds of work, so it can run to completion at once (runToEnd) or spread over frames. Pure: the same ground and options give the same plan. Farmsteads (size: 'farmstead') are planned by planFarm.

      Parameters

      • ground: SiteFn

        Height and water lookup in frame-local coordinates (e.g. Site.frameFn(frame)).

      • o: CityOptions
      • climate: Climate | null = null

        Climate at the centre, for architecture: 'auto' (options.climate wins; temperate if neither).

      Returns Generator<void, CityPlan>