Click or drag to resize

Curve3dExtension.TryConvertToCompositeCurve Method

Tries to convert the Curve3d sequence into a CompositeCurve3d.

Namespace:  Gile.AutoCAD.R20.Geometry
Assembly:  GeometryExtensionsR20 (in GeometryExtensionsR20.dll) Version: 2.2.0.0 (2.2.0.0)
Syntax
public static bool TryConvertToCompositeCurve(
	this IEnumerable<Curve3d> source,
	out CompositeCurve3d compositeCurve,
	Tolerance tolerance = default,
	Predicate<Curve3d> predicate = null
)

Parameters

source
Type: System.Collections.Generic.IEnumerable<Curve3d>
Collection this method applies to.
compositeCurve
Type: CompositeCurve3d
Output composite curve.
tolerance (Optional)
Type: Tolerance
Tolerance used to compare end points.
predicate (Optional)
Type: System.Predicate<Curve3d>
Predicate used to filter input curves 3d.

Return Value

Type: Boolean
true, if the composite curve could be created; false otherwise.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<Curve3d>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionArgumentNullException is thrown if source is null.
See Also