You are here: Start » FIL.NET » Function Reference » Geometry 2D » Geometry 2D Features » FIL.PointsCaliperDiameter

FIL.PointsCaliperDiameter

Computes the longest and the shortest width of the input points measured as distance between parallel lines containing all of them.

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void PointsCaliperDiameter
(
	IList<FilNet.Point2D> inPoints,
	NullableValue<FilNet.Segment2D> outMinDiameter,
	NullableValue<float> outMinDiameterLength,
	NullableValue<FilNet.Segment2D> outMaxDiameter,
	NullableValue<float> outMaxDiameterLength
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.IList<FilNet.Point2D>
outMinDiameterFilNet.NullableValue<FilNet.Segment2D> Can be null to skip this parameter calculation.
outMinDiameterLengthFilNet.NullableValue<float> Can be null to skip this parameter calculation.
outMaxDiameterFilNet.NullableValue<FilNet.Segment2D> Can be null to skip this parameter calculation.
outMaxDiameterLengthFilNet.NullableValue<float> Can be null to skip this parameter calculation.

Errors

List of possible exceptions:

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

Function Overrides

See also