SkipEmptySurfaceRegion
If the input surface contains at least one valid point in a given region, then the region is copied to the output; otherwise Nil is returned.
Applications:Secures against domain errors caused by regions with no valid point, e.g. just before the SurfaceMassCenter filter is to be invoked.
Syntax
C++
C#
Python
def SkipEmptySurfaceRegion( inSurface: Surface, inRegion: Region, / ) -> ( outNotEmptySurfaceRegion: Region | None, outIsNotEmpty: bool )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inSurface | Surface | ||
![]() |
inRegion | Region | Input region | |
![]() |
outNotEmptySurfaceRegion | Region | None | ||
![]() |
outIsNotEmpty | bool |


