threejs-worldgen
    Preparing search index...

    Module threejs-city

    Procedural settlements for three.js: hamlets to cities where people live, roads grown along a tensor field, blocks, lots and buildings matched to the local climate, procedural TSL facades and road surfaces with weather hooks, and terrain flattened under it all. Works on flat worlds and planets from threejs-biomes. Everything derives from seed and the world.

    The settlement planner is a population model on H3's hexagonal hierarchical grid: habitability from the world, central places sized by rank (Zipf), dispersed rural people, land use, night lights and terrain-following road / rail / power networks. planCities turns its settlements into cities.

    BuildingWeather
    City
    DistrictMap
    HexGrid
    MeshBuilder
    MinHeap
    Population
    PopulationOverlay
    RoadGraph
    Settlements
    Site
    TensorField
    AggregateCell
    Architecture
    Balcony
    Block
    BlockOptions
    Building
    BuildingData
    BuildingDetail
    BuildingLook
    BuildingMeshes
    BuildingOptions
    BuildingPart
    BuildingSite
    BuildingTier
    ChurchOptions
    CityCreateOptions
    CityData
    CityOptions
    CityPlan
    CitySite
    CityStats
    Climate
    CropRule
    DetailInstance
    DistrictOptions
    DistrictShares
    DistrictStyle
    EdgeHit
    Entrance
    FacadeOptions
    Farm
    FarmOptions
    FarmProp
    Field
    FieldLook
    FieldShading
    Frontage
    HabitabilityOptions
    LandmarkContext
    LandmarkOptions
    LandUseThresholds
    LodOptions
    Lot
    LotData
    LotTarget
    MeshData
    Network
    NetworkEdge
    NetworkOptions
    NightLightField
    OrientedBox
    OverlayCreateOptions
    OverlayOptions
    PlannedLot
    PointOnSegment
    PopulationCell
    PopulationData
    PopulationMapOptions
    PopulationOptions
    PopulationStyle
    RoadAccess
    RoadAnchor
    RoadAnchorOptions
    RoadClassOptions
    RoadContext
    RoadEdge
    RoadEdgeData
    RoadGeometryOptions
    RoadGraphJSON
    RoadLookOptions
    RoadNetworkData
    RoadNode
    RoadNodeData
    RoadOptions
    RoadProfile
    RoadsideOptions
    RoadTraffic
    SegmentHit
    Settlement
    SettlementsCreateOptions
    SettlementsOptions
    SettlementThresholds
    SitePoint
    SizeClass
    SurfaceShading
    TaggedPolygon
    TensorFieldOptions
    TerrainOptions
    TownHallOptions
    VehicleSpot
    WaterTowerOptions
    Weather
    WeatherOptions
    WindowStyle
    ArchitectureName
    BuildingStyle
    CityInput
    CityUniforms
    Crop
    DetailKind
    DetailShape
    District
    FarmBuilding
    Landmark
    LandUse
    NetworkType
    OverlayInput
    PopulationInput
    PopulationMode
    RoadStyle
    RoadSurface
    RoadType
    RoofMaterial
    RoofShape
    SettlementClass
    SettlementSize
    SiteFn
    TravelMode
    Vec2
    WallMaterial
    Weights
    ARCHITECTURES
    BUILDING_STYLES
    BUILDING_VERTEX
    CROPS
    DEFAULT_BLOCKS
    DEFAULT_BUILDINGS
    DEFAULT_CITY
    DEFAULT_DISTRICTS
    DEFAULT_FARM
    DEFAULT_LANDMARKS
    DEFAULT_OVERLAY
    DEFAULT_POPULATION
    DEFAULT_POPULATION_MAP
    DEFAULT_ROADS
    DEFAULT_ROADSIDE
    DEFAULT_SIZE_CLASSES
    DEFAULT_STYLE
    DEFAULT_TENSOR_FIELD
    DEFAULT_TERRAIN
    DETAIL_SHAPES
    DISTRICTS
    FIELD_VERTEX
    H3_EARTH_RADIUS
    LANDMARKS
    PLANE_ANCHOR
    ROAD_PARTS
    ROAD_STYLES
    ROAD_SURFACES
    ROAD_VERTEX
    ROOF_MATERIALS
    ROOF_PARTS
    SETTLEMENT_SIZES
    WALL_MATERIALS
    aggregatePopulation
    applyFacadeUniforms
    architectureFor
    assembleBuilding
    assignSurfaces
    boxCorners
    buildingGeometry
    cellColor
    cellKey
    chaikin
    cityData
    cityRadius
    citySize
    classify
    clipPolygon
    createCityUniforms
    createFacadeMaterial
    createFieldMaterial
    createRoadMaterial
    createRoofMaterial
    densityT
    detailGeometry
    detailInstances
    entranceFacing
    extractBlocks
    fieldGeometry
    fits
    generateNetworks
    generatePopulation
    generateRoads
    gradeRoads
    growRoads
    insetPolygon
    isSimplePolygon
    laneOffset
    mergeOptions
    modifierPoint
    nearestOnPolyline
    nightLights
    orientedBox
    padModifier
    pick
    planBuilding
    planCities
    planCity
    planFarm
    planLandmarks
    pointInPolygon
    pointOnEdge
    pointSegment
    polygonArea
    polygonCentroid
    polygonPerimeter
    polygonsOverlap
    ramp
    reachable
    renderPopulationMap
    resolveCityOptions
    resolvePopulationOptions
    roadAnchors
    roadGeometry
    roadModifiers
    roadsideLots
    routeCost
    runToEnd
    segmentIntersection
    segmentsTouch
    settleBuilding
    simplifyPolygon
    siteResolution
    streetRect
    subdivideBlock
    weatherSurface