threejs-worldgen
    Preparing search index...

    Interface Block

    A city block: one face of the road graph, shrunk away from the roads around it.

    interface Block {
        area: number;
        id: number;
        outline: Vec2[];
        polygon: Vec2[];
    }
    Index
    area: number

    Area of polygon, m².

    id: number

    Index in the block list.

    outline: Vec2[]

    The face outline along road centrelines, counter-clockwise.

    polygon: Vec2[]

    Buildable area: outline inset by each road's half width and sidewalk, counter-clockwise.