IsTorus

Determines if a surface is a portion of a torus.

Syntax

rhinoscriptsyntax.IsTorus (surface_id)

rhinoscript.surface.IsTorus (surface_id)

Parameters

surface_id

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

Returns

Boolean

True if successful, otherwise False.

None

On error.

Example

import rhinoscriptsyntax as rs

surface = rs.GetObject("Select a surface", rs.filter.surface)

if surface:

    if rs.IsTorus(surface):

        print "The surface is a portion of a torus."

    else:

        print "The surface is not a portion of a torus."

Also See

IsCone

IsCylinder

IsSphere

IsSurface