Create a surface by revolving a curve around an axis.
rhinoscriptsyntax.AddRevSrf (curve_id, axis, start_angle=0.0, end_angle=360.0)
rhinoscript.surface.AddRevSrf (curve_id, axis, start_angle=0.0, end_angle=360.0)
curve_id |
Required. String or Guid. The identifier of the curve to revolve. |
axis |
Required. Line identifying the start point and end point of the rail revolve axis. |
start_angle |
Optional. Number. The starting angle. If omitted, an angle of 0.0 is used. |
end_angle |
Optional. Number. The ending angle. If omitted, an angle of 360.0 is used. |
Guid |
The identifier of the new object if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
curve = rs.AddLine((5,0,0), (10,0,10))
rs.AddRevSrf( curve, ((0,0,0), (0,0,1)) )