You are here: Start » AVL.NET » 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, out AvlNet.Segment2D outMinDiameter, out float outMinDiameterLength, out AvlNet.Segment2D outMaxDiameter, out float outMaxDiameterLength )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inRegion | AvlNet.Region | Input region. | |||
outMinDiameter | AvlNet.Segment2D | ||||
outMinDiameterLength | float | ||||
outMaxDiameter | AvlNet.Segment2D | ||||
outMaxDiameterLength | float |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty region in RegionCaliperDiameter. |