IsCone

Determines if a surface is a portion of a cone.

Syntax

rhinoscriptsyntax.IsCone (object_id)

rhinoscript.surface.IsCone (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.IsCone(surface):

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

    else:

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

Also See

IsCylinder

IsSphere

IsSurface

IsTorus