SplitRegionIntoExactlyNComponents
Splits a region into a fixed-size array of regions.
Syntax
C++
C#
Python
def SplitRegionIntoExactlyNComponents( inRegion: Region, /, *, inComponentCount: int = 1, inMaxDistance: int | None = 5, inDistanceBalance: float = 0, inMaxJointDiameter: float | None = None, inMaxJointWidth: int | None = None, inMaxJointHeight: int | None = None, inRemoveBoundaryBlobs: bool = False ) -> outComponents: list[Region] | None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inRegion | Region | Input region | ||
![]() |
inComponentCount | int | 1 - ![]() |
1 | |
![]() |
inMaxDistance | int | None | 0 - ![]() |
5 | |
![]() |
inDistanceBalance | float | -1.0 - 1.0 | 0 | Defines how much important the distance between regions in x coordinate is according to distance in y coordinate |
![]() |
inMaxJointDiameter | float | None | 0.0 - ![]() |
None | |
![]() |
inMaxJointWidth | int | None | 0 - ![]() |
None | |
![]() |
inMaxJointHeight | int | None | 0 - ![]() |
None | |
![]() |
inRemoveBoundaryBlobs | bool | False | Flag indicating whether the blobs on border of the input region should be removed or not | |
![]() |
outComponents | list[Region] | None |



