Route whose displayed positions should be simplified.
Graph containing the semantic edge kinds used by the route.
A positive value enables route simplification.
Checks that a replacement segment does not cross an obstacle.
OptionaltraceSegment: (from: Vector3, to: Vector3) => Vector3[] | nullOptionally builds a traversable segment following the scene surface.
The simplified route, or the original route when simplification is unsafe.
Simplifies the displayed route while preserving vertical connectors and validating every replacement segment against scene obstacles.