You are here: Start » FIL.NET » Function Reference » Geometry 2D » Geometry 2D Features » FIL.PointsDiameter
Finds the longest segment connecting two points from a given array.
| Namespace: | FilNet |
|---|---|
| Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void PointsDiameter ( IList<FilNet.Point2D> inPoints, NullableValue<FilNet.Segment2D> outDiameter, NullableValue<float> outDiameterLength )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() | inPoints | System.Collections.Generic.IList<FilNet.Point2D> | Input array of points. | ||
![]() | outDiameter | FilNet.NullableValue<FilNet.Segment2D> | Longest segment found. Can be null to skip this parameter calculation. | ||
![]() | outDiameterLength | FilNet.NullableValue<float> | Length of longest segment found. Can be null to skip this parameter calculation. |
Examples
PointsDiameter performed on an array of input points. The orange line is the result.
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Empty array of points on input in PointsDiameter. |


