CurveContourPoints

Returns the 3-D point locations calculated by contouring a curve object.

Syntax

rhinoscriptsyntax.CurveContourPoints (curve_id, start_point, end_point, interval=None)

rhinoscript.curve.CurveContourPoints (curve_id, start_point, end_point, interval=None)

Parameters

curve_id

Required.  String or Guid.  The identifier of a curve object.

start_point

Required.  List of 3 numbers or Point3d.  The 3-D starting point of a center line.

end_point

Required.  List of 3 numbers or Point3d.  The 3-D ending point of a center line.

interval

Optional.  Number.  The distance between contour curves.  If omitted, the interval will be equal to the diagonal distance of the object's bounding box divided by 50.

Returns

List

A list of 3-D points, one for each contour, if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select curve", rs.filter.curve)

start_point = rs.GetPoint("Base point of center line")

end_point = rs.GetPoint("Endpoint of center line", start_point)

contour = rs.CurveContourPoints(obj, start_point, end_point)

if contour: rs.AddPoints(contour)

Also See

AddSrfContourCrvs

MeshContourPoints

SurfaceContourPoints