CurveEditPoints

Returns the edit, or Greville, points of a curve object.  For each curve control point, there is a corresponding edit point.

Syntax

rhinoscriptsyntax.CurveEditPoints (curve_id, return_parameters=False, segment_index=-1)

rhinoscript.curve.CurveEditPoints (curve_id, return_parameters=False, segment_index=-1)

Parameters

curve_id

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

return_parameters

Optional.  Boolean.  Return the edit points as a list of parameter values.  If omitted, the edit points are returned as a list of 3-D points.

segment_index

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

Returns

List

If return_parameters is omitted or False, then an array of 3-D edit points if successful.

List

If return_parameters is True, then an array of parameter values if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

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

if rs.IsCurve(obj):

    points = rs.CurveEditPoints(obj)

    if points: rs.AddPointCloud( points )

Also See

IsCurve

CurvePointCount

CurvePoints