You are here: Start » FIL.NET » Function Reference » Geometry 3D » Geometry 3D Fitting » 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 | |
---|---|---|---|---|---|
![]() | inPoints | System.Collections.Generic.IList<FilNet.Point3D> | |||
![]() | inOutlierSuppression | FilNet.MEstimator? | Tukey | Default value: Tukey. | |
![]() | outSegment | FilNet.INullable<FilNet.Segment3D> | Fitted segment or nothing if method failed to converge. This parameter cannot be null. | ||
![]() | outInliers | FilNet.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
- FitSegmentToPoints3D(IList<Point3D>, INullable<Segment3D>)
- FitSegmentToPoints3D(IList<Point3D>, Nullable<MEstimator>, INullable<Segment3D>)