API

Interface TubeOptions

Options for createTubeData: a circular cross-section swept along a path.

interface TubeOptions {
    arc?: number;
    cap?: number;
    path: Vec3[];
    radius?: number;
    radiusFunction?: (i: number, distance: number) => number;
    tessellation?: number;
}
Index
arc?: number
cap?: number
path: Vec3[]
radius?: number
radiusFunction?: (i: number, distance: number) => number

Per-point radius override; receives the point index and its distance along the path.

tessellation?: number