Returns the definition of a cylinder surface.
rhinoscriptsyntax.SurfaceCylinder (surface_id)
rhinoscript.surface.SurfaceCylinder (surface_id)
surface_id |
Required. String or Guid. The surface object's identifier. |
Tuple |
A tuple containing the definition of the cylinder if successful. The elements of the tuple are as follows:
|
||||||||||||
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
cylinder = rs.AddCylinder(rs.WorldXYPlane(), 6, 2, False)
if rs.IsCylinder(cylinder):
plane, height, radius = rs.SurfaceCylinder(cylinder)
rs.AddCylinder(plane, height, radius, False)