GroupPathsByRegions


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

Syntax

C++
C#
Python
 
def GroupPathsByRegions(
	inPaths: list[Path],
	inRegions: list[Region],
	/,
	*,
	inMatchingCriterion: MatchingCriterion = MatchingCriterion.Intersection
)
-> (
	outGroupedIndices: list[ list[int] ],
	outGroupedPaths: list[ list[Path] ]
)

Parameters

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