You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Fitting » AVL.FitArcToPoints
Approximates points with an arc using the selected outliers suppression method.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void FitArcToPoints ( IList<AvlNet.Point2D> inPoints, AvlNet.Range? inRange, AvlNet.CircleFittingMethod inFittingMethod, AvlNet.MEstimator? inOutlierSuppression, out AvlNet.Arc2D? outArc, NullableRef<List<AvlNet.Point2D>> outInliers )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPoints | System.Collections.Generic.IList<AvlNet.Point2D> | ||||
inRange | AvlNet.Range? | Determines which array points take part in fitting process. Default value: atl::NIL. | |||
inFittingMethod | AvlNet.CircleFittingMethod | ||||
inOutlierSuppression | AvlNet.MEstimator? | ||||
outArc | AvlNet.Arc2D? | Fitted arc or nothing if the computations failed to converge. | |||
outInliers | AvlNet.NullableRef<System.Collections.Generic.List<AvlNet.Point2D>> | Points matching the fitting arc. Can be null to skip this parameter calculation. |
Examples
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>, Nullable<Range>, CircleFittingMethod, Nullable<MEstimator>, Nullable<Arc2D>)