NurbsSurface.from_fill

classmethod NurbsSurface.from_fill(curve1, curve2, curve3=None, curve4=None, style='stretch')[source]

Construct a NURBS surface from the infill between two, three or four contiguous NURBS curves.

Parameters:
curve1compas.geometry.NurbsCurve
curve2compas.geometry.NurbsCurve
curve3compas.geometry.NurbsCurve, optional.
curve4compas.geometry.NurbsCurve, optional.
styleLiteral[‘stretch’, ‘coons’, ‘curved’], optional.
  • 'stretch' produces the flattest patch.

  • 'curved' produces a rounded patch.

  • 'coons' is between stretch and coons.

Returns:
compas.geometry.NurbsSurface
Raises:
ValueError

If the fill style is not supported.