Studio Yotsuba
Back to Node List

Region To Paths

region_to_paths

Turns region outlines into vector paths, connecting the region system to every path node. Trace voronoi cells and stroke their outlines, fill them with gradients via Path Fill, or deform the cracks with Path Deform

Reviewed
Guide available

Input Ports

NameTypeDescription
Regions
regions
RegionMap
Required
The regions whose outlines become paths

Output Ports

NameTypeDescription
Path
path
Path
All region outlines in one path (one closed sub-path per outline, holes included)
Paths
paths
List<Path>
One path per region (in region id order), for processing regions one by one with list nodes
Count
count
Int
How many regions were converted

Overview

Converts region outlines into bezier paths, bringing the whole path toolbox to the region system. Extract voronoi cracks as line art, warp region outlines, or reuse "the shape of an area" as a first-class asset.

Usage tips

  • The go-to flow: region node → region_to_paths → path_stroke (draw the outlines) / path_fill (fill them) / path_deform (warp them).
  • Outlines follow the pixel edges, so they are right-angled polylines. If that looks too blocky, a light path_deform jitter downstream makes them organic.
  • The path output is everything in one path (holes included); paths is a per-region list — use the list when each region needs its own treatment.
  • If you only need a crack texture as an image, region_border is cheaper; convert to paths when you want stroke width, taper or other path-level control.

Common mistakes

  • Too many sub-paths, evaluation feels heavy — merge small regions with region_merge_small before converting.
  • Outlines hug the picture border — regions touching the canvas edge include the canvas edge in their outline. Exclude them first with region_filter's Interior mode if unwanted.

Related nodes

  • path_stroke / path_fill / path_deform — downstream processing
  • region_border — plain image rendering of boundaries, no path conversion
  • region_boundary_trace — boundaries as pixel coordinate lines (PixelLine) instead
Back to Node List