Commonplace kernel API
    Preparing search index...

    Interface NurbsSurfaceBicubicExperimental

    A bicubic NURBS surface in 3D — degree 3 in both parameter directions, rational (per-control-point positive weights), with clamped non-uniform knot vectors in both u and v.

    Storage. controls and weights are flat row-major arrays of length countU * countV:

    controls[i * countV + j] = P_{i, j}
    weights[i * countV + j]  = w_{i, j}
    

    with i ∈ [0, countU) indexing the u-direction and j ∈ [0, countV) indexing the v-direction. Matches the curve-side NurbsCurveCubic (1D analog) and RationalBezierBicubicPatch (single-patch analog).

    Invariants (validated by decomposeNurbsSurfaceToRationalBezierPatches):

    • degreeU === 3 && degreeV === 3. Bicubic-only for Phase 3d.
    • countU >= 4 && countV >= 4 (need at least p + 1 controls per direction for a non-degenerate cubic).
    • controls.length === countU * countV.
    • weights.length === countU * countV; each weight is a positive finite number.
    • knotsU.length === countU + degreeU + 1 (so n_u + p + 2).
    • knotsV.length === countV + degreeV + 1.
    • knotsU and knotsV are non-decreasing and clamped at both ends.

    Evaluation (not implemented here — provided in the test file as the reference Cox-de Boor 2D tensor-product):

    S(u, v) = (Σ_i Σ_j N_{i,p}(u) N_{j,p}(v) w_{i,j} P_{i,j})
            / (Σ_i Σ_j N_{i,p}(u) N_{j,p}(v) w_{i,j})
    

    where N_{k,p} is the B-spline basis of degree p.

    2026-Q2

    experimental — stable-by target: 2027-Q1

    interface NurbsSurfaceBicubic {
        controls: readonly Vector3[];
        countU: number;
        countV: number;
        degreeU: 3;
        degreeV: 3;
        knotsU: readonly number[];
        knotsV: readonly number[];
        weights: readonly number[];
    }
    Index
    controls: readonly Vector3[]

    countU × countV control net, row-major: controls[i * countV + j] = P_{i,j}.

    countU: number

    Number of control points in the u-direction (= n_u + 1).

    countV: number

    Number of control points in the v-direction (= n_v + 1).

    degreeU: 3
    degreeV: 3
    knotsU: readonly number[]

    Clamped knot vector in u (length countU + degreeU + 1).

    knotsV: readonly number[]

    Clamped knot vector in v (length countV + degreeV + 1).

    weights: readonly number[]

    countU × countV weight net, row-major. Each weight must be a positive finite number.