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

AVL.FitLineToPoints3D_LTE

Approximates points in 3D with a line using Least Trimmed Error algorithm.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void FitLineToPoints3D_LTE
(
	IList<AvlNet.Point3D> inPoints,
	int inSeedSubsetSize,
	int? inEvalSubsetSize,
	out AvlNet.Line3D outLine,
	NullableRef<List<AvlNet.Point3D>> outLTInliers,
	NullableValue<float> outLTError
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.IList<AvlNet.Point3D>
inSeedSubsetSizeint<2, 10>3Number of points in one combination for getting a sample line. Default value: 3.
inEvalSubsetSizeint?<3, INF>Number of closest points used for evaluation of a sample line, or Auto if seed points are to be used. Default value: atl::NIL.
outLineAvlNet.Line3DFitted line.
outLTInliersAvlNet.NullableRef<System.Collections.Generic.List<AvlNet.Point3D>>Inlying points of the best LTE line. Can be null to skip this parameter calculation.
outLTErrorAvlNet.NullableValue<float>The Least Trimmed Error. Can be null to skip this parameter calculation.

Errors

List of possible exceptions:

Error type Description
DomainError Empty inPoints array in FitLineToPoints3D_LTE.

Function Overrides

See also