←ALL OPERATORS
> simulations

Shortest Path

simulations/shortest-path·v1.5.1
IN:2  OUT:2

The Shortest Path operator treats the points of the Path Geometry input as a network, connected along mesh edges or to neighbors within a distance, and finds for every point of the End Point Group the shortest route back to the nearest point of the Start Point Group. An optional Cost Attribute weights the traversal, and the operator outputs the paths as line strips together with the path geometry carrying distances and parents.

Until Converged solves the paths fully on each cook, while Single Pass grows them a few sweeps per cook through a feedback loop, which tracks a changing cost. With the Alternate Start/End Point Locations input connected, the groups are read from that input and mapped to the closest path points, Lock Alternate Start/End Point Locations freezes that mapping, and the visualization options color each path, the start and end points or the cost.

PAGEShortest Path
Start Point GroupStartgroupPoint group of the start points, from the path geometry or the Alternate Start / End input.
End Point GroupEndgroupPoint group of the end points. A path is traced from each one back to the nearest start.
Cost AttributeCostattribPoint attribute that multiplies the edge lengths. Paths prefer points with a low cost.
Sweeps per CookSweepsIn Single Pass mode, the relaxation sweeps per cook. 64 tracks a changing cost, 1 grows the paths one edge per frame.
Passes UsedPassesusedNumber of relaxation passes the last solve needed (read-only).
Max Neighbors DistanceMaxdistanceSpecifies the distance below which a point is considered a neighbor of the current point.
Max NeighborsMaxneighborsNumber of neighbor slots per point. Must be at least the maximum vertex degree.
Display Line Strips PathsDisplaylinestripsDisplay the paths output (output 1).
Display Path GeometryDisplaygeoEnable drawing the path geometry on output 2.
Visualize PathsVisualizepathsWhether to give every path its own color, on both outputs.
Visualization SeedVisualizationseedNumerical value that initializes the random piece colors.
Visualize Start/End PointsVisualizestartendWhen on, start points are colored green and end points red on the path geometry.
Visualize CostVisualizecostShade the path geometry by cost, from black for the lowest to white for the highest.
Lock Alternate Start/End Point LocationsLockalternateWhen on, the alternate start and end mapping is frozen so changing the path geometry does not move it.
PAGECommon
Free Extra GPU MemoryFreeextragpumemFree memory that has accumulated when output memory has grown and shrunk.
Input 0 POP - Path Geometry
Input 1 POP - Alternate Start/End Point Locations
Output 0 POP - Line Strips Paths
Output 1 POP - Path Geometry