You are here: Start » FIL.NET » Function Reference » Geometry 2D » Geometry 2D Fitting » 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.CircleFittingMethod inFittingMethod, out FilNet.Arc2D? outArc )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPoints | System.Collections.Generic.IList<FilNet.Point2D> | |||
![]() | inFittingMethod | FilNet.CircleFittingMethod | |||
![]() | outArc | FilNet.Arc2D? | Fitted arc or nothing if the computations failed to converge. |
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>, Nullable<Range>, CircleFittingMethod, Nullable<MEstimator>, Nullable<Arc2D>)
- FitArcToPoints(IList<Point2D>, Nullable<Range>, CircleFittingMethod, Nullable<MEstimator>, Nullable<Arc2D>, NullableRef<List<Point2D>>)