You are here: Start » AVL.NET » Function Reference » Region » Region Features » AVL.RegionCaliperDiameter

AVL.RegionCaliperDiameter

Computes the longest and the shortest width of the input region measured as distance between parallel lines containing the whole region.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void RegionCaliperDiameter
(
	AvlNet.Region inRegion,
	NullableValue<AvlNet.Segment2D> outMinDiameter,
	NullableValue<float> outMinDiameterLength,
	NullableValue<AvlNet.Segment2D> outMaxDiameter,
	NullableValue<float> outMaxDiameterLength
)

Parameters

Name Type Range Default Description
inRegionAvlNet.RegionInput region.
outMinDiameterAvlNet.NullableValue<AvlNet.Segment2D> Can be null to skip this parameter calculation.
outMinDiameterLengthAvlNet.NullableValue<float> Can be null to skip this parameter calculation.
outMaxDiameterAvlNet.NullableValue<AvlNet.Segment2D> Can be null to skip this parameter calculation.
outMaxDiameterLengthAvlNet.NullableValue<float> Can be null to skip this parameter calculation.

Errors

List of possible exceptions:

Error type Description
DomainError Empty region on input in RegionCaliperDiameter.

Function Overrides

See also