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 | |
|---|---|---|---|---|
![]() |
inPaths | list[Path] | Array of paths that will be classified into multiple groups | |
![]() |
inRegions | list[Region] | Array of regions that define the groups | |
![]() |
inMatchingCriterion | MatchingCriterion | MatchingCriterion.Intersection | Specifies whether a path must fully belong to a group region or if it is enough that it intersects |
![]() |
outGroupedIndices | list[ list[int] ] | Indices of input paths classified into multiple groups | |
![]() |
outGroupedPaths | list[ list[Path] ] | Input paths classified into multiple groups |


