FitArcToPoints


Approximates points with an arc using the selected outliers suppression method.

Syntax

C++
C#
Python
 
def FitArcToPoints(
	inPoints: list[Point2D],
	/,
	*,
	inRange: Range | None = None,
	inFittingMethod: CircleFittingMethod = CircleFittingMethod.AlgebraicKasa,
	inOutlierSuppression: MEstimator | None = None
)
-> (
	outArc: Arc2D | None,
	outInliers: list[Point2D]
)

Parameters

Name Type Default Description
Input value inPoints list[Point2D]
Input value inRange Range | None None Determines which array points take part in fitting process
Input value inFittingMethod CircleFittingMethod CircleFittingMethod.AlgebraicKasa
Input value inOutlierSuppression MEstimator | None None
Output value outArc Arc2D | None Fitted arc or nothing if the computations failed to converge
Output value outInliers list[Point2D] Points matching the fitting arc