AddSrfContourCrvs

Adds a spaced series of planar curves resulting from the intersection of defined cutting planes through a surface or a polysurface. For more information, see the Rhino help file for details on the Contour command.

Syntax

rhinoscriptsyntax.AddSrfContourCrvs(object_id, points_or_plane, interval=None)

rhinoscript.surface.AddSrfContourCrvs(object_id, points_or_plane, interval=None)

Parameters

object_id

Required.  String or Guid.  The identifier of a surface or polysurface object.

points_or_plane

Required.  Two 3d points or a Plane. If two 3d points, they define the starting point and ending point of a center line. If a plane, this plane defines the cutting plane

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 Guids identifying the newly created contour curves if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select object", rs.filter.surface + rs.filter.polysurface)

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

endpoint = rs.GetPoint("Endpoint of center line", startpoint)

rs.AddSrfContourCrvs( obj, (startpoint, endpoint) )

Also See

CurveContourPoints

MeshContourPoints

SurfaceContourPoints