Overview
Reassigns RegionMap ID numbers in a meaningful order. Freshly generated IDs
follow a mechanical order; sorting them from top-left or by largest area makes
downstream ID selection in nodes such as region_mask intuitive.
- Category: Generate / Region / Edit
- Uses: arranging IDs so ID and ID-range selections in Region Mask are easier to use
Usage tips
- Area order (
AreaAsc/AreaDesc) is practical. It stabilizes ID-range selections such as the three largest faces while preserving their meaning when the seed changes. - After remapping IDs, always review the numbers with Show IDs or
region_debug_preview; they no longer match the upstream IDs. - Remapping does not separate disconnected islands. Use
region_split_islandswhen each island needs its own ID.
Related nodes
region_mask— primary consumer of selected IDsregion_split_islands— separates IDs by islandregion_debug_preview— reviews the numberingregion_pattern_assign— assignment where ID order has meaning
ID order
| Value | Description |
|---|---|
Current |
Keep the current IDs |
TopLeft |
Assign lower IDs to regions nearest the top-left |
BottomRight |
Assign lower IDs to regions nearest the bottom-right |
AreaAsc |
Assign lower IDs to smaller regions |
AreaDesc |
Assign lower IDs to larger regions |
Random |
Assign IDs in a stable random order |
How to use
Connect nodes such as
Region Cells.regions -> Region Remap.regions -> Region Mask.regions.
For example, with ID Order set to AreaAsc, IDs 0, 1, 2... are assigned from the
smallest region upward. A downstream IdRange in Region Mask can then reveal
progressively larger regions.
Remapping changes the relationship to IDs inspected upstream. Before specifying IDs in Region Mask or Region Distance, review them with this node's Show IDs option or Region Debug Preview.
If disconnected islands still share one ID, reordering alone will not separate them. Use Region Split Islands before or after this node to assign IDs per visible island.