You are here: Start » AVL.NET » AVL.SortRegions(AvlNet.Region[], AvlNet.RegionFeature, AvlNet.SortingOrder, AvlNet.Region[], float[])
AVL.SortRegions(AvlNet.Region[], AvlNet.RegionFeature, AvlNet.SortingOrder, AvlNet.Region[], float[])
Changes the order of regions from the input array accordingly to an ascending/descending sequence of their computed feature values.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void SortRegions( AvlNet.Region[] inRegions, AvlNet.RegionFeature inFeature, AvlNet.SortingOrder inSortingOrder, out AvlNet.Region[] outSortedRegions, out float[] outSortedValues )
Parameters
- inRegions
- Type: AvlNet.Region
Input regions - inFeature
- Type: AvlNet.RegionFeature
Region feature value to be computed - inSortingOrder
- Type: AvlNet.SortingOrder
Sorting order - outSortedRegions
- Type: AvlNet.Region
Regions sorted according to the computed feature values - outSortedValues
- Type: System.Single
Description
The filter sorts the array of input regions according to the selected feature values computed for each of them.
Examples
![]() |
![]() |
SortRegions performed with inFeature = Area. Input regions are on the left. On the right is the result.


