ClassifyRegions


Splits an array of regions according to the selected feature and range.

Applications:Use this filter when you have an array of regions and you want to select some of them for further processing.

Syntax

C++
C#
Python
 
def ClassifyRegions(
	inRegions: list[Region],
	/,
	*,
	inFeature: RegionFeature = RegionFeature.Area,
	inMinimum: float | None = None,
	inMaximum: float | None = None
)
-> (
	outAccepted: list[Region],
	outRejected: list[Region],
	outBelow: list[Region],
	outAbove: list[Region],
	outValues: list[float]
)

Parameters

Name Type Default Description
Input value inRegions list[Region] Input regions
Input value inFeature RegionFeature RegionFeature.Area Region feature value to be computed
Input value inMinimum float | None None Lowest value of the range
Input value inMaximum float | None None Highest value of the range
Output value outAccepted list[Region] Regions with feature values matching the range
Output value outRejected list[Region] Regions with feature values outside the range
Output value outBelow list[Region] Regions with feature values lower than inMinimum
Output value outAbove list[Region] Regions with feature values higher than inMaximum
Output value outValues list[float] Computed feature values