FitSegmentToPoints3D


Approximates points in 3D with a segment using selected outliers suppression method.

Syntax

C++
C#
Python
 
def FitSegmentToPoints3D(
	inPoints: list[Point3D],
	/,
	*,
	inOutlierSuppression: MEstimator | None = MEstimator.Tukey
)
-> (
	outSegment: Segment3D | None,
	outInliers: list[Point3D]
)

Parameters

Name Type Default Description
Input value inPoints list[Point3D]
Input value inOutlierSuppression MEstimator | None MEstimator.Tukey
Output value outSegment Segment3D | None Fitted segment or nothing if method failed to converge
Output value outInliers list[Point3D] Points matching the computed segment