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)
Syntaxpublic static bool TryConvertToCompositeCurve(
this IEnumerable<Curve3d> source,
out CompositeCurve3d compositeCurve,
Tolerance tolerance = default,
Predicate<Curve3d> predicate = null
)
<ExtensionAttribute>
Public Shared Function TryConvertToCompositeCurve (
source As IEnumerable(Of Curve3d),
<OutAttribute> ByRef compositeCurve As CompositeCurve3d,
Optional tolerance As Tolerance = Nothing,
Optional predicate As Predicate(Of Curve3d) = Nothing
) As Boolean
public:
[ExtensionAttribute]
static bool TryConvertToCompositeCurve(
IEnumerable<Curve3d^>^ source,
[OutAttribute] CompositeCurve3d^% compositeCurve,
Tolerance tolerance = Tolerance(),
Predicate<Curve3d^>^ predicate = nullptr
)
[<ExtensionAttribute>]
static member TryConvertToCompositeCurve :
source : IEnumerable<Curve3d> *
compositeCurve : CompositeCurve3d byref *
?tolerance : Tolerance *
?predicate : Predicate<Curve3d>
(* Defaults:
let _tolerance = defaultArg tolerance new Tolerance()
let _predicate = defaultArg predicate null
*)
-> bool
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:
Booleantrue, 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).
ExceptionsException | Condition |
---|
ArgumentNullException | ArgumentNullException is thrown if source is null. |
See Also