Curve.ProjectToBrep Method (Curve, IEnumerable(Brep), Vector3d, Double, Int32[])

CurveProjectToBrep Method (Curve, IEnumerableBrep, Vector3d, Double, Int32)

Projects a Curve onto a collection of Breps along a given direction.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static Curve[] ProjectToBrep(
	Curve curve,
	IEnumerable<Brep> breps,
	Vector3d direction,
	double tolerance,
	out int[] brepIndices
)
Public Shared Function ProjectToBrep ( 
	curve As Curve,
	breps As IEnumerable(Of Brep),
	direction As Vector3d,
	tolerance As Double,
	<OutAttribute> ByRef brepIndices As Integer()
) As Curve()

Parameters

curve
Type: Rhino.GeometryCurve
Curve to project.
breps
Type: System.Collections.GenericIEnumerableBrep
Breps to project onto.
direction
Type: Rhino.GeometryVector3d
Direction of projection.
tolerance
Type: SystemDouble
Tolerance to use for projection.
brepIndices
Type: SystemInt32
(out) Integers that identify for each resulting curve which Brep it was projected onto.

Return Value

Type: Curve
An array of projected curves or null if the projection set is empty.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also