spline — Spline / NURBS interpolationInterpolation

Interpolate a smooth B-spline / NURBS curve through or along control points.

spline [degree <d>] { (x,y,z[,w]) … }

Equivalents: Siemens BSPLINE/CSPLINE/ASPLINE · Fanuc G06.2

ParameterTypeDefault
degreecount3spline degree
pointsmm[,w]control / fit points (optional rational weight w)

One unified spline path that the whole motion stack understands (the same `Segment::Spline` the G-code/Siemens importers and the path compressor emit). A rational weight `w` makes it a true NURBS (exact conics). The look-ahead governor feeds it smoothly without chording.

a cubic through four points
units mm
defaults { feed 800 }
spline degree 3 {
  (0,0,0)
  (10,10,0)
  (20,-10,0)
  (30,0,0)
}

See also: wrap · g1

← all commands