brepjs API Reference
    Preparing search index...

    Interface NurbsSurfaceInput

    A B-spline surface given exactly, for KernelBuilderOps.nurbsSurface: the same fields getNurbsSurfaceData reads back. Knots strictly increase; multiplicities follow OCCT's rules (ends at most degree + 1 on a non-periodic surface, interior knots at most degree) and account for exactly the poles in their direction.

    interface NurbsSurfaceInput {
        degreeU: number;
        degreeV: number;
        isPeriodicU?: boolean;
        isPeriodicV?: boolean;
        knotsU: readonly number[];
        knotsV: readonly number[];
        multiplicitiesU: readonly number[];
        multiplicitiesV: readonly number[];
        poles: readonly (readonly (readonly [number, number, number])[])[];
        weights?: readonly (readonly number[])[];
    }
    Index
    degreeU: number
    degreeV: number
    isPeriodicU?: boolean
    isPeriodicV?: boolean
    knotsU: readonly number[]
    knotsV: readonly number[]
    multiplicitiesU: readonly number[]
    multiplicitiesV: readonly number[]
    poles: readonly (readonly (readonly [number, number, number])[])[]

    poles[i][j]: the i-th pole along u, the j-th along v.

    weights?: readonly (readonly number[])[]

    One positive weight per pole, in the same layout; omit for a non-rational surface.