Taos API Reference
    Preparing search index...

    Interface SplineCarveSpline

    interface SplineCarveSpline {
        points: readonly (readonly [number, number, number])[];
        width: number;
        bankWidth: number;
        depth: number;
        step?: number;
    }
    Index

    Properties

    points: readonly (readonly [number, number, number])[]

    Center-line [x, surfaceY, z] points (absolute world; for a river, surfaceY is the intended WATER surface — the bed lands depth below it). Ordered source → mouth.

    width: number

    Full channel width (m) — ground inside it reaches the full profile.

    bankWidth: number

    Bank falloff band (m) beyond the channel half-width, feathering back to the existing terrain.

    depth: number

    Bed depth (m) below each point's surfaceY. Use 0 with flatten for a road bed at the spline height itself.

    step?: number

    Target subdivided link length (m). Default 6.