SurfaceCone

Returns the definition of a cone surface.

Syntax

rhinoscriptsyntax.SurfaceCone (surface_id)

rhinoscript.surface.SurfaceCone (surface_id)

Parameters

surface_id

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

Returns

Tuple

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

Element

Type

Description

0

Plane

The plane of the cone.  The apex of cone is at plane's origin and  the axis of the cone is plane's z-axis.

1

Number

The height of the cone.

2

Number

The radius of the cone.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

cone = rs.AddCone(rs.WorldXYPlane(), 6, 2, False)

if rs.IsCone(cone):

    cone_def = rs.SurfaceCone(cone)

    rs.AddCone( cone_def[0], cone_def[1], cone_def[2], False )

Example

SurfaceCone

SurfaceCylinder

SurfaceSphere

SurfaceTorus