SurfaceCylinder

Returns the definition of a cylinder surface.

Syntax

rhinoscriptsyntax.SurfaceCylinder (surface_id)

rhinoscript.surface.SurfaceCylinder (surface_id)

Parameters

surface_id

Required.  String or Guid.  The surface object's identifier.

Returns

Tuple

A tuple containing the definition of the cylinder if successful.  The elements of the tuple are as follows:

Element

Type

Description

0

Plane

The base plane of the cylinder.

1

Number

The height of the cylinder.

2

Number

The radius of the cylinder.

None

If not successful, or on error.

Example

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)

Example

SurfaceCone

SurfaceSphere

SurfaceTorus