FitSegmentToPoints3D_LTE
Approximates points in 3D with a segment using a RANSAC algorithm.
Syntax
C++
C#
Python
def FitSegmentToPoints3D_LTE( inPoints: list[Point3D], /, *, inSeedSubsetSize: int = 3, inEvalSubsetSize: int | None = None ) -> ( outSegment: Segment3D, outLTInliers: list[Point3D], outLTError: float, diagIterationCount: int )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inPoints | list[Point3D] | |||
![]() |
inSeedSubsetSize | int | 2 - 10 | 3 | Number of points in one combination for getting a sample segment |
![]() |
inEvalSubsetSize | int | None | 3 - ![]() |
None | Number of closest points used for evaluation of a sample segment, or Auto if seed points are to be used |
![]() |
outSegment | Segment3D | Fitted segment | ||
![]() |
outLTInliers | list[Point3D] | Inlying points of the best LTE segment | ||
![]() |
outLTError | float | The Least Trimmed Error | ||
![]() |
diagIterationCount | int | Number of combinations considered |




