You are here: Start » AVL.NET » Function Reference » Surface » Surface Features » AVL.SurfaceMedian_OrNil
Finds the median Z coordinate of the surface points; returns NIL if the surface is empty in the given region.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void SurfaceMedian_OrNil ( AvlNet.Surface inSurface, NullableRef<AvlNet.Region> inRoi, out float? outMedian )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() | inSurface | AvlNet.Surface | Input surface. | ||
![]() | inRoi | AvlNet.NullableRef<AvlNet.Region> | Region of interest. Default value: atl::NIL. | ||
![]() | outMedian | float? | Median Z coordinate of the surface points. |
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Region of interest exceeds an input surface in SurfaceMedian_OrNil. |


