threejs-worldgen
    Preparing search index...

    Interface BuildingPart

    One volume of a building: stacked tiers and the roof on the last one.

    interface BuildingPart {
        blank?: boolean;
        rect: OrientedBox | null;
        roof: RoofShape;
        roofHeight: number;
        tiers: BuildingTier[];
    }
    Index
    blank?: boolean

    Walls without windows (steeples, tanks, silos, barns).

    rect: OrientedBox | null

    The rectangle pitched, skillion and saw-tooth roofs sit on (null = flat roof only).

    roof: RoofShape

    Roof shape.

    roofHeight: number

    Roof rise above the walls (ridge or peak), metres.

    tiers: BuildingTier[]

    Stacked tiers, widest first.