Curve3dExtensionToOrderedArray Method |
Order the collection by contiguous curves ([n].EndPoint equals to [n+1].StartPoint).
Namespace:
Gile.AutoCAD.R20.Geometry
Assembly:
GeometryExtensionsR20 (in GeometryExtensionsR20.dll) Version: 2.2.0.0 (2.2.0.0)
Syntaxpublic static Curve3d[] ToOrderedArray(
this IEnumerable<Curve3d> source,
Tolerance tolerance = default
)
<ExtensionAttribute>
Public Shared Function ToOrderedArray (
source As IEnumerable(Of Curve3d),
Optional tolerance As Tolerance = Nothing
) As Curve3d()
public:
[ExtensionAttribute]
static array<Curve3d^>^ ToOrderedArray(
IEnumerable<Curve3d^>^ source,
Tolerance tolerance = Tolerance()
)
[<ExtensionAttribute>]
static member ToOrderedArray :
source : IEnumerable<Curve3d> *
?tolerance : Tolerance
(* Defaults:
let _tolerance = defaultArg tolerance new Tolerance()
*)
-> Curve3d[]
Parameters
- source
- Type: System.Collections.GenericIEnumerableCurve3d
Collection this method applies to. - tolerance (Optional)
- Type: Tolerance
Tolerance used to compare end points.
Return Value
Type:
Curve3dOrdered array of Curve3d.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableCurve3d. 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).
ExceptionsException | Condition |
---|
ArgumentNullException | ArgumentNullException is thrown if source is null. |
InvalidOperationException | InvalidOperationException is thrown if non-contiguous segments are found. |
See Also