The junction configuration containing all objects and links.
Three.js group refs for each junction object.
Optionalopts: {Optional tuning parameters.
OptionaldisallowUTurn?: booleanOptionalmaxSteps?: numberOptionalsmoothPerSegment?: booleanIf false, uses raw polylines with no smoothing or resampling.
Optionalspacing?: numberFixed spacing in metres for per-segment resample.
Optionaltension?: numberCatmull-Rom tension for per-segment smoothing (0 = loose, 1 = tight).
All generated routes plus the raw graph, start nodes, and end node keys.
Top-level function that builds the full routing graph for the junction network and enumerates every possible route through it via depth-first search.
Runs in four passes: