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
Input value inSurface Surface
Input value inRegion Region Input region
Output value outNotEmptySurfaceRegion Region | None
Output value outIsNotEmpty bool