IsCurvePlanar

Verifies an object is a planar curve object.

Syntax

rhinoscriptsyntax.IsCurvePlanar (object_id, segment_index=-1)

rhinoscript.curve.IsCurvePlanar (object_id, segment_index=-1)

Parameters

object_id

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

segment_index

Optional. Number. If object_id identifies a polycurve object, then 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 curve")

if rs.IsCurve(obj):

    if rs.IsCurvePlanar(obj):

        print "The object is a planar curve."

    else:

        print "The object is not a planar curve."

else:

    print "The object is not a curve."

Also See

IsCurve

IsCurveClosed

IsCurveLinear

IsCurvePeriodic