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 | |
|---|---|---|---|---|---|
![]() |
inPoints | list[Point3D] | |||
![]() |
inMaxOutlierCount | int | None | 0 - ![]() |
None | Determines how many outlier points can be present to end the search |
![]() |
inMaxInlierDistance | float | 0.0 - ![]() |
3.0 | Distance from the output line for a point to be considered an inlier |
![]() |
inIterationCount | int | None | 1 - ![]() |
42 | Number of iterations; Auto means that all point pairs will be used |
![]() |
outSegment | Segment3D | None |



