Yotsuba Games
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
The node name and summary are available in English. Port, parameter, and article details are currently shown in Japanese.

Input Ports

NameTypeDescription
้ ˜ๅŸŸ
regions
RegionMap
Required
่ผช้ƒญใ‚’ใƒ‘ใ‚นใซใ—ใŸใ„ RegionMap ใงใ™

Output Ports

NameTypeDescription
ใƒ‘ใ‚น
path
Path
ๅ…จ้ ˜ๅŸŸใฎ่ผช้ƒญใ‚’1ใคใฎใƒ‘ใ‚นใซใพใจใ‚ใŸใ‚‚ใฎใงใ™ใ€‚่ผช้ƒญ1ๆœฌใŒ1ใคใฎ้–‰ใ˜ใŸใ‚ตใƒ–ใƒ‘ใ‚นใซใชใ‚Šใ€็ฉดใ‚‚ๅซใพใ‚Œใพใ™
ใƒ‘ใ‚นใƒชใ‚นใƒˆ
paths
List<Path>
้ ˜ๅŸŸใ”ใจใซๅˆ†ใ‹ใ‚ŒใŸใƒ‘ใ‚นใฎใƒชใ‚นใƒˆใงใ™(้ ˜ๅŸŸID้ †)ใ€‚ใƒชใ‚นใƒˆใƒŽใƒผใƒ‰ใจ็ต„ใฟๅˆใ‚ใ›ใฆ้ ˜ๅŸŸ1ใคใšใคๅŠ ๅทฅใ—ใŸใ„ใจใใซไฝฟใ„ใพใ™
้ ˜ๅŸŸๆ•ฐ
count
Int
ใƒ‘ใ‚นใซๅค‰ๆ›ใ•ใ‚ŒใŸ้ ˜ๅŸŸใฎๆ•ฐใงใ™

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
Region To Paths โ€” PixPipeline Node Reference