You are here: Start » AVL.NET » Function Reference » Geometry 3D » Geometry 3D Fitting » AVL.FitLineToPoints3D_RANSAC

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
inPointsSystem.Collections.Generic.IList<AvlNet.Point3D>
inMaxInlierDistancefloat<0.0f, INF>3.0fDistance from the output line for a point to be considered an inlier. Default value: 3.0f.
outLineAvlNet.INullable<AvlNet.Line3D> This parameter cannot be null.

Errors

List of possible exceptions:

Error type Description
DomainError Empty inPoints array in FitLineToPoints3D_RANSAC.

Function Overrides

See also