GroupRegionsByRegions


For each region returns which regions lie inside of it or intersect with it.

Syntax

C++
C#
Python
 
def GroupRegionsByRegions(
	inRegions: list[Region],
	inGroupRegions: list[Region],
	/,
	*,
	inMatchingCriterion: MatchingCriterion = MatchingCriterion.Intersection
)
-> (
	outGroupedIndices: list[ list[int] ],
	outGroupedRegions: list[ list[Region] ]
)

Parameters

Name Type Default Description
Input value inRegions list[Region] Array of regions that will be classified into multiple groups
Input value inGroupRegions list[Region] Array of regions that define the groups
Input value inMatchingCriterion MatchingCriterion MatchingCriterion.Intersection Specifies whether a region must fully belong to a group region or if it is enough that it intersects
Output value outGroupedIndices list[ list[int] ] Indices of input regions classified into multiple groups
Output value outGroupedRegions list[ list[Region] ] Input regions classified into multiple groups