Click or drag to resize

CurveJoinCurves Method (IEnumerableCurve, Double, Boolean, Boolean, Int32)

Joins a collection of curve segments together.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 8.12
Syntax
public static Curve[] JoinCurves(
	IEnumerable<Curve> inputCurves,
	double joinTolerance,
	bool preserveDirection,
	bool simpleJoin,
	out int[] key
)

Parameters

inputCurves
Type: System.Collections.GenericIEnumerableCurve
An array, a list or any enumerable set of curve segments to join.
joinTolerance
Type: SystemDouble
Joining tolerance, i.e. the distance between segment end-points that is allowed.
preserveDirection
Type: SystemBoolean

If true, curve endpoints will be compared to curve start points.

If false, all start and endpoints will be compared and copies of input curves may be reversed in output.

simpleJoin
Type: SystemBoolean
Set true to use the simple joining method. In general, set this parameter to false.
key
Type: SystemInt32
inputCurves[i] is part of returnValue[key[i]]

Return Value

Type: Curve
An array of joined curves. This array can be empty.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf inputCurves is null.
See Also