Returns the definition of a torus surface.
rhinoscriptsyntax.SurfaceTorus(surface_id)
rhinoscript.surface.SurfaceTorus(surface_id)
surface_id |
Required. String or Guid. The surface object's identifier. |
Tuple |
A tuple containing the definition of the torus if successful. The elements of the tuple are as follows:
|
||||||||||||
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
torus = rs.AddTorus(rs.WorldXYPlane(), 6, 2)
if rs.IsTorus(torus):
torus_def = rs.SurfaceTorus(torus)
rs.AddTorus( torus_def[0], torus_def[1], torus_def[2] )