AddRevSrf

Create a surface by revolving a curve around an axis.

Syntax

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)

Parameters

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.

Returns

Guid

The identifier of the new object if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

curve = rs.AddLine((5,0,0), (10,0,10))

rs.AddRevSrf( curve, ((0,0,0), (0,0,1)) )

Also See

AddRailRevSrf