IsCylinder

Determines if a surface is a portion of a cylinder.

Syntax

rhinoscriptsyntax.IsCylinder (object_id)

rhinoscript.surface.IsCylinder (object_id)

Parameters

object_id

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

Returns

Boolean

True if successful, otherwise False.

Example

import rhinoscriptsyntax as rs

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

if surface:

    if rs.IsCylinder(surface):

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

    else:

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

Also See

IsCone

IsSphere

IsSurface

IsTorus