FitLineToPoints3D_LTE


Approximates points in 3D with a line using Least Trimmed Error algorithm.

Syntax

C++
C#
Python
 
def FitLineToPoints3D_LTE(
	inPoints: list[Point3D],
	/,
	*,
	inSeedSubsetSize: int = 3,
	inEvalSubsetSize: int | None = None
)
-> (
	outLine: Line3D,
	outLTInliers: list[Point3D],
	outLTError: float,
	diagIterationCount: int
)

Parameters

Name Type Range Default Description
Input value inPoints list[Point3D]
Input value inSeedSubsetSize int 2 - 10 3 Number of points in one combination for getting a sample line
Input value inEvalSubsetSize int | None 3 - None Number of closest points used for evaluation of a sample line, or Auto if seed points are to be used
Output value outLine Line3D Fitted line
Output value outLTInliers list[Point3D] Inlying points of the best LTE line
Output value outLTError float The Least Trimmed Error
Diagnostic input diagIterationCount int Number of combinations considered