IsCurvePeriodic

Verifies an object is a periodic curve object.

Syntax

rhinoscriptsyntax.IsCurvePeriodic (curve_id, segment_index=-1)

rhinoscript.curve.IsCurvePeriodic (curve_id, segment_index=-1)

Parameters

curve_id

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

segment_index

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

Returns

Boolean

True if successful, otherwise False.

Null

On error.

Example

import rhinoscriptsyntax as rs

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

if rs.IsCurve(obj):

    if rs.IsCurvePeriodic(obj):

        print "The object is a periodic curve."

    else:

        print "The object is not a periodic curve."

else:

    print "The object is not a curve."

Also See

IsCurve

IsCurveClosed

IsCurveLinear

IsCurvePlanar