AddInterpCrvOnSrf

Adds an interpolated curve object that lies on a specified surface. Note, this function will not create periodic curves, but it will create closed curves.

Syntax

rhinoscriptsyntax.AddInterpCrvOnSrf (surface_id, points )

rhinoscript.curve.AddInterpCrvOnSrf (surface_id, points )

Parameters

surface_id

Required.  The surface object's identifier.

points

Required.  A list of 3-D points that lie on the specified surface. The list must contain at least two points.

Returns

Guid

The identifier of the new object if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

surface_id = rs.GetObject("Select surface to draw curve on", rs.filter.surface)

if surface_id:

    point1 = rs.GetPointOnSurface( surface_id, "First point on surface")

    if point1:

        point2 = rs.GetPointOnSurface( surface_id, "Second point on surface")

        if point2:

            rs.AddInterpCrvOnSrf( surface_id, [point1, point2])

Also See

AddCurve

AddInterpCurve

AddInterpCrvOnSrfUV