threejs-worldgen
    Preparing search index...

    Interface NetworkOptions

    How settlements and people are connected (see generateNetworks).

    interface NetworkOptions {
        detour: number;
        enabled: boolean;
        extraEdges: number;
        gravityExponent: number;
        highwayPopulation: number;
        neighbours: number;
        powerlinePopulation: number;
        railPopulation: number;
        railSlopeCost: number;
        reuse: number;
        roadPopulation: number;
        slopeCost: number;
        smoothing: number;
        waterCost: number;
    }
    Index
    detour: number

    Add a gravity link only when the network path is at least this many times the straight distance.

    enabled: boolean

    Build networks at all.

    extraEdges: number

    Extra road links beyond the spanning tree, as a fraction of the settlement count (gravity model).

    gravityExponent: number

    Distance exponent of the gravity model (interaction = P₁·P₂ / dᵏ).

    highwayPopulation: number

    Both ends at least this populous: highway.

    neighbours: number

    Nearest settlements considered for gravity links, per settlement.

    powerlinePopulation: number

    Settlements at least this populous get power lines (0 = none).

    railPopulation: number

    Settlements at least this populous get a railway (0 = no rail).

    railSlopeCost: number

    Extra cost per unit slope² for railways (rail hates hills).

    reuse: number

    Cost multiplier on cells an earlier route already uses, so roads merge into trunks (1 = off).

    roadPopulation: number

    Both ends at least this populous: road (else track).

    slopeCost: number

    Extra cost per unit slope² for roads (cost = length × (1 + slopeCost × slope²)).

    smoothing: number

    Chaikin smoothing passes on routed polylines.

    waterCost: number

    Cost multiplier for crossing water (bridges).