You are here: Start » AVL.NET » Function Reference » Geometry 3D » Geometry 3D Fitting » AVL.FitLineToPoints3D_RANSAC
Approximates points in 3D with a line using a RANSAC algorithm.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void FitLineToPoints3D_RANSAC ( IList<AvlNet.Point3D> inPoints, float inMaxInlierDistance, INullable<AvlNet.Line3D> outLine )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPoints | System.Collections.Generic.IList<AvlNet.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. | |
outLine | AvlNet.INullable<AvlNet.Line3D> | This parameter cannot be null. |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty inPoints array in FitLineToPoints3D_RANSAC. |