FitSegmentToPoints3D_RANSAC


Approximates points in 3D with a segment using a RANSAC algorithm.

Syntax

C++
C#
Python
 
def FitSegmentToPoints3D_RANSAC(
	inPoints: list[Point3D],
	/,
	*,
	inMaxOutlierCount: int | None = None,
	inMaxInlierDistance: float = 3.0,
	inIterationCount: int | None = 42
)
-> outSegment: Segment3D | None

Parameters

Name Type Range Default Description
Input value inPoints list[Point3D]
Input value inMaxOutlierCount int | None 0 - None Determines how many outlier points can be present to end the search
Input value inMaxInlierDistance float 0.0 - 3.0 Distance from the output line for a point to be considered an inlier
Input value inIterationCount int | None 1 - 42 Number of iterations; Auto means that all point pairs will be used
Output value outSegment Segment3D | None