GetMaximumRegion


Returns the region from the input array that corresponds to the largest computed feature value.

Applications:Use this filter when you have an array of regions and you want to select one of them that best matches some criterion.

Syntax

C++
C#
Python
 
def GetMaximumRegion(
	inRegions: list[Region],
	outRegion: Region,
	/,
	*,
	inFeature: RegionFeature = RegionFeature.Area
)
-> (
	outValue: float,
	outIndex: int
)

Parameters

Name Type Default Description
Input value inRegions list[Region] Input regions
Input value inFeature RegionFeature RegionFeature.Area Region feature value to be computed
Output value outRegion Region Output region
Output value outValue float Computed feature value of the output region
Output value outIndex int