Yotsuba Games
Back to Node List

Path Measure

path_measure

Measure the usable length and structure of a path

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
パă‚č
path
Path
Required
é…çœźé–“éš”ă‚„ă‚ąăƒ‹ăƒĄăƒŒă‚·ăƒ§ăƒłă«äœżă†é•·ă•ă‚’èȘżăčるパă‚č

Output Ports

NameTypeDescription
ć…šé•·
total_length
Float
ć…šă‚”ăƒ–ăƒ‘ă‚čăźé•·ă•ă‚’è¶łă—ăŸć€€ïŒˆăƒ”ă‚Żă‚»ăƒ«ïŒ‰
ă‚”ăƒ–ăƒ‘ă‚č長
sub_path_length
Float
éžă‚“ă ă‚”ăƒ–ăƒ‘ă‚č1æœŹăźé•·ă•ïŒˆăƒ”ă‚Żă‚»ăƒ«ïŒ‰
ă‚”ăƒ–ăƒ‘ă‚č数
sub_path_count
Int
ç‹Źç«‹ă—ăŸă‚”ăƒ–ăƒ‘ă‚čăźæœŹæ•°
閉じどいる
closed
Bool
éžă‚“ă ă‚”ăƒ–ăƒ‘ă‚čが閉じたèŒȘにăȘっどいるか

Parameters

NameTypeDefaultRangeDescription / Options
èȘżăčă‚‹ă‚”ăƒ–ăƒ‘ă‚č
sub_path_index
Int
00–255

ă€Œă‚”ăƒ–ăƒ‘ă‚čé•·ă€ăšă€Œé–‰ă˜ăŠă„ă‚‹ă€ă§èȘżăčるç•Șć·ă€‚0ăŒæœ€ćˆăźăƒ‘ă‚čです

Overview

Reports path length in pixels for calculating chain links, fence pieces, movement speed, or placement offsets. It provides both the sum of all subpaths and details for one selected subpath.

Usage tips

  • Total Length is the combined distance of all independent lines. Use it for total material quantity or aggregate processing.
  • Subpath Length applies only to Selected Subpath. Use it when placement counts differ per line.
  • Closed tells you whether the selected subpath forms a loop. It is useful for seamless placement and periodic processing.
  • Length uses the same arc-length basis as the normalized/distance modes in path_sample and the pixel spacing in path_array.

Common mistakes

  • Total and subpath length differ: the document contains multiple subpaths. Select the same index in downstream nodes when only one line is intended.
  • Length is zero: the path is missing, empty, or the selected subpath index does not exist.
  • A closed path is longer than expected: the return segment from end to start is part of its actual travel distance.

Related nodes

  • path_array — place images at fixed pixel intervals along the measured route
  • path_sample — retrieve position and direction by normalized progress or distance
  • path_bounds — report the bounding rectangle and center instead of length
Back to Node List
Path Measure — PixPipeline Node Reference