You are here: Start » FIL.NET » Function Reference » Geometry 3D » Geometry 3D Fitting » FIL.FitSegmentToPoints3D_RANSAC
Approximates points in 3D with a segment using a RANSAC algorithm.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void FitSegmentToPoints3D_RANSAC ( IList<FilNet.Point3D> inPoints, float inMaxInlierDistance, INullable<FilNet.Segment3D> outSegment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPoints | System.Collections.Generic.IList<FilNet.Point3D> | |||
![]() | inMaxInlierDistance | float | <0.0f, INF> | 3.0f | Distance from the output line for a point to be considered an inlier. Default value: 3.0f. |
![]() | outSegment | FilNet.INullable<FilNet.Segment3D> | This parameter cannot be null. |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty inPoints array in FitSegmentToPoints3D_RANSAC. |