Creates a surface or solid by extruding straight along a path curve.
rhinoscriptsyntax.ExtrudeSurface (surface, curve, cap=True)
rhinoscript.surface.ExtrudeSurface (surface, curve, cap=True)
surface |
Required. String or guid. The identifier of the surface object to extrude. |
curve |
Required. String or guid. The identifier of the path curve. |
cap |
Optional. Boolean. Extrusion is capped at both ends to make a closed polysurface. The default value is True. |
Guid |
The identifier of the new object if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
surface = rs.AddSrfPt([(0,0,0), (5,0,0), (5,5,0), (0,5,0)])
curve = rs.AddLine((5,0,0), (10,0,10))
rs.ExtrudeSurface(surface, curve)