threejs-worldgen
    Preparing search index...

    Interface Building

    A planned building (pure data; geometry is built from it).

    interface Building {
        area: number;
        balconies: Balcony[];
        base: number;
        bottom: number;
        center: Vec2;
        details: BuildingDetail[];
        district: District;
        entrance: Entrance;
        floorHeight: number;
        floors: number;
        height: number;
        id: number;
        lot: number;
        material: WallMaterial;
        parts: BuildingPart[];
        population: number;
        roofMaterial: RoofMaterial;
        seed: number;
        shops: boolean;
        stilts: number;
        style: BuildingStyle;
        tint?: string;
        use: Landmark | FarmBuilding | null;
    }
    Index
    area: number

    Ground-floor area, m².

    balconies: Balcony[]

    Balconies.

    base: number

    Ground-floor level (local y), stilts included; set once the terrain is known.

    bottom: number

    Bottom of the foundation or stilts (local y).

    center: Vec2

    Footprint centroid.

    details: BuildingDetail[]

    Rooftop plant, tanks, antennas, chimneys, wall AC units, stilts.

    district: District

    District it stands in.

    entrance: Entrance

    Main door.

    floorHeight: number

    Storey height, metres.

    floors: number

    Storeys.

    height: number

    Highest wall top, metres above the base.

    id: number

    Index in the building list.

    lot: number

    Lot it stands on.

    material: WallMaterial

    Wall material.

    parts: BuildingPart[]

    Volumes (an L-shaped house has two).

    population: number

    Estimated residents.

    roofMaterial: RoofMaterial

    Pitched roof material (flat roofs are always concrete/membrane).

    seed: number

    Stable random number 0..1 (colour pick, window lights).

    shops: boolean

    Shopfronts on the ground floor.

    stilts: number

    Stilt height under the ground floor, metres (0 = on the ground).

    Style.

    tint?: string

    Wall colour (#rrggbb) instead of one from the material's palette (a red barn).

    use: Landmark | FarmBuilding | null

    A landmark or farm building, or null for homes, shops, offices and industry.