Skip to content
ForCADDocumentation
Browse guide contents ↓

NURBS geometry and parameter space

Two coordinate systems

A patch maps parameters to a physical point. The Parameter Space panel shows one axis for a curve, a rectangle for a surface, and a box for a volume. Studio labels the axes U, V, and W. In formulas the corresponding coordinates are , , and . A curve in 3D still needs only to locate a point on it.

The Inspector uses a normalized probe value between zero and one. If the active knot interval is , the parameter passed to the patch is

For example, a probe value of 0.5 on the interval from 2 to 6 evaluates the patch at 4. This is the midpoint of the parameter interval. The physical distance traveled along a curve also depends on its shape and parameterization.

What a control point changes

A non-uniform rational B-spline (NURBS) curve blends its control points using the degree- B-spline basis and positive weights . With control points, indexed from one as in Fortran,

The coefficient of each point in this sum is its rational basis value, . The Fortran binding curve%basis returns these coefficients in control-point order. Evaluate them on a quarter circle.

Increasing one weight draws the curve toward its control point wherever that basis function contributes. Multiplying all weights by the same positive number leaves the curve unchanged. Change a weight in Fortran shows the effect at the midpoint of a quadratic curve.

Knots and smoothness

Distinct knots divide a parameter direction into spans. At an interior knot repeated times, a degree- spline has at least continuity for . For a cubic curve, a simple knot guarantees continuity of the first two derivatives. A knot of multiplicity two guarantees continuity of the first derivative. Inserting a knot preserves the current geometry. The extra control points give later edits more freedom.

In Studio, Basis Functions follows the direction selected in Parameter Space. For a surface or volume, the other parameters stay at the probe position as the plot samples that direction. Inspect the parameter cube and basis plot.

For the mathematical definitions, see The NURBS Book.