AddInterpCrvOnSrfUV

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

Syntax

rhinoscriptsyntax.AddInterpCrvOnSrfUV ( surface_id, points )

rhinoscript.curve.AddInterpCrvOnSrfUV ( surface_id, points )

Parameters

surface_id

Required.  The surface object's identifier.

points

Required.  An array of 2-D surface parameters. The array must contain at least two sets of surface parameters.

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:

    domainU = rs.SurfaceDomain( surface_id, 0)

    u0 = domainU[0]/2

    u1 = domainU[1]/2

    domainV = rs.SurfaceDomain( surface_id, 1)

    v0 = domainV[0]/2

    V1 = domainV[1]/2

    rs.AddInterpCrvOnSrfUV( surface_d, [[u0,v0],[u1,v1]])

Also See

AddCurve

AddInterpCurve

AddInterpCrvOnSrf