ProjectCurveToSurface

Projects one or more curves onto one or more surfaces or polysurfaces.

Syntax

rhinoscriptsyntax.ProjectCurveToSurface (curve_ids, surface_ids, direction)

rhinoscript.curve.ProjectCurveToSurface (curve_ids, surface_ids, direction)

Parameters

curve_ids

Required.  The identifiers of curves to project.

surface_ids

Required.  The identifiers of the surface or polysurface objects to project onto.

direction

Required.  List of 3 numbers or Vector3d.  The direction (3-D vector) to project the points.

Returns

List

The identifiers of the newly created, projected curve objects, if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

surface = rs.GetObject("Select surface to project onto", rs.filter.surface)

curve = rs.GetObject("Select curve to project", rs.filter.curve)

# Project down...

results = rs.ProjectCurveToSurface(curve, surface, (0,0,-1))

Also See

ProjectCurveToMesh

ProjectPointToMesh

ProjectPointToSurface