ExperimentalExperimentalcontrolscountU × countV control net, row-major:
controls[i * countV + j] = P_{i,j}.
ExperimentalcountNumber of control points in the u-direction (= n_u + 1).
ExperimentalcountNumber of control points in the v-direction (= n_v + 1).
ExperimentaldegreeExperimentaldegreeExperimentalknotsClamped knot vector in u (length countU + degreeU + 1).
ExperimentalknotsClamped knot vector in v (length countV + degreeV + 1).
ExperimentalweightscountU × countV weight net, row-major. Each weight must be
a positive finite number.
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
uandv.Storage.
controlsandweightsare flat row-major arrays of lengthcountU * countV:with
i ∈ [0, countU)indexing the u-direction andj ∈ [0, countV)indexing the v-direction. Matches the curve-sideNurbsCurveCubic(1D analog) andRationalBezierBicubicPatch(single-patch analog).Invariants (validated by
decomposeNurbsSurfaceToRationalBezierPatches):degreeU === 3 && degreeV === 3. Bicubic-only for Phase 3d.countU >= 4 && countV >= 4(need at leastp + 1controls 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(son_u + p + 2).knotsV.length === countV + degreeV + 1.knotsUandknotsVare 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):
where
N_{k,p}is the B-spline basis of degree p.Since
2026-Q2
Stability
experimental — stable-by target: 2027-Q1