OCCNurbsSurface.from_fill

classmethod OCCNurbsSurface.from_fill(curve1, curve2, curve3=None, curve4=None, style='stretch')

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

Parameters:
curve1OCCNurbsCurve
curve2OCCNurbsCurve
curve3OCCNurbsCurve, optional.
curve4OCCNurbsCurve, optional.
styleLiteral[‘stretch’, ‘coons’, ‘curved’], optional.
  • 'stretch' produces the flattest patch.

  • 'curved' produces a rounded patch.

  • 'coons' is between stretch and coons.

Returns:
OCCNurbsSurface
Raises:
ValueError

If the fill style is not supported.