You are here: Start » FIL.NET » Function Reference » Geometry 3D » Geometry 3D Fitting » FIL.FitSegmentToPoints3D

FIL.FitSegmentToPoints3D

Approximates points in 3D with a segment using selected outliers suppression method.

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void FitSegmentToPoints3D
(
	IList<FilNet.Point3D> inPoints,
	FilNet.MEstimator? inOutlierSuppression,
	INullable<FilNet.Segment3D> outSegment,
	NullableRef<List<FilNet.Point3D>> outInliers
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.IList<FilNet.Point3D>
inOutlierSuppressionFilNet.MEstimator?TukeyDefault value: Tukey.
outSegmentFilNet.INullable<FilNet.Segment3D>Fitted segment or nothing if method failed to converge. This parameter cannot be null.
outInliersFilNet.NullableRef<System.Collections.Generic.List<FilNet.Point3D>>Points matching the computed segment. Can be null to skip this parameter calculation.

Errors

List of possible exceptions:

Error type Description
DomainError Empty point array on input in FitSegmentToPoints3D.

Function Overrides

See also