You are here: Start » FIL.NET » Function Reference » Geometry 2D » Geometry 2D Fitting » FIL.FitArcToPoints

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
inPointsSystem.Collections.Generic.IList<FilNet.Point2D>
inRangeFilNet.Range?Determines which array points take part in fitting process. Default value: ftl::NIL.
inFittingMethodFilNet.CircleFittingMethod
inOutlierSuppressionFilNet.MEstimator?
outArcFilNet.Arc2D?Fitted arc or nothing if the computations failed to converge.
outInliersFilNet.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

See also