IsSphere

Determines if a surface is a portion of a sphere.

Syntax

rhinoscriptsyntax.IsSphere (surface_id)

rhinoscript.surface.IsSphere (surface_id)

Parameters

surface_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.IsSphere(surface):

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

    else:

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

Also See

IsCone

IsCylinder

IsSurface

IsTorus