IsCircle

Verifies an object is a circle curve object.

Syntax

rhinoscriptsyntax.IsCircle (curve_id, segment_index)

rhinoscript.curve.IsCircle (curve_id, segment_index)

Parameters

curve_id

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

segment_index

Optional. Number. If curve_id identifies a polycurve object, then segment_index identifies the curve segment of the polycurve to query.

Returns

Boolean

True if successful, otherwise False.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select a circle")

if rs.IsCircle(obj):

    print "The object is a circle."

else:

    print "The object is not a circle."

Also See

AddCircle

AddCircle3Pt

CircleCenterPoint

CircleCircumference

CircleRadius