threejs-worldgen
    Preparing search index...

    Interface BuildingData

    A building as plain data.

    interface BuildingData {
        base: number;
        center: Vec2;
        district: District;
        entrance: Entrance;
        floors: number;
        footprint: Vec2[];
        height: number;
        id: number;
        lot: number;
        material: WallMaterial;
        population: number;
        roof: RoofShape;
        style: BuildingStyle;
        use: Landmark | FarmBuilding | null;
    }
    Index
    base: number

    Ground-floor level (local y).

    center: Vec2

    Footprint centroid.

    district: District

    District.

    entrance: Entrance

    Main door.

    floors: number

    Storeys.

    footprint: Vec2[]

    Ground-floor outline of the main volume (frame-local).

    height: number

    Wall height above the base, metres.

    id: number

    Building id.

    lot: number

    Lot id.

    material: WallMaterial

    Wall material.

    population: number

    Estimated residents.

    roof: RoofShape

    Main roof shape.

    Style.

    use: Landmark | FarmBuilding | null

    Landmark (church, town hall, water tower) or farm building (farmhouse, barn, silo, machine shed), or null.