You are here: Start » FIL.NET » FIL.FitArcToPoints
Approximates points with an arc using the selected outliers suppression method.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void FitArcToPoints ( IList<FilNet.Point2D> inPoints, FilNet.Range? inRange, FilNet.CircleFittingMethod inFittingMethod, FilNet.MEstimator? inOutlierSuppression, out FilNet.Arc2D? outArc, NullableRef<List<FilNet.Point2D>> outInliers )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPoints | System.Collections.Generic.IList<FilNet.Point2D> | |||
![]() | inRange | FilNet.Range? | Determines which array points take part in fitting process. Default value: ftl::NIL. | ||
![]() | inFittingMethod | FilNet.CircleFittingMethod | |||
![]() | inOutlierSuppression | FilNet.MEstimator? | |||
![]() | outArc | FilNet.Arc2D? | Fitted arc or nothing if the computations failed to converge. | ||
![]() | outInliers | FilNet.NullableRef<System.Collections.Generic.List<FilNet.Point2D>> | Points matching the fitting arc. Can be null to skip this parameter calculation. |
Examples
![]() |
The resulting outArc drawn with the input points, inFittingMethod = AlgebraicKasa and inOutlierSuppression = Auto.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Outlier suppression is supported only in algebraic fitting methods. |
DomainError | Range exceeds the input point array in FitArcToPoints. |
Function Overrides
- FitArcToPoints(IList<Point2D>, CircleFittingMethod, Nullable<Arc2D>)
- FitArcToPoints(IList<Point2D>, CircleFittingMethod, Nullable<Arc2D>, NullableRef<List<Point2D>>)
- FitArcToPoints(IList<Point2D>, Nullable<Range>, CircleFittingMethod, Nullable<MEstimator>, Nullable<Arc2D>)