grasshopper2 Rhinorhino3d.com
ComponentAuto-generatedMesh
Travel Costs
00000000-db2e-4bb8-88b4-706e81434291

⚠️ This content is auto-generated.

Evaluate the travel costs of all edges in a graph, and optionally the cheapest cost of reaching every node from a start node.

Input parameters:

  1. Gf → Graph to evaluate.
  2. S → Optional index of the node to measure reach from.
  3. Vr → Variable declarations of the form 'name = Meta.Name ?? fallback', one per line.
  4. Ex → Expression for the cost of travelling an edge. Built-in variables are length, run, rise, grade and inf.
    •                                       length → Distance
    •                                            1 → Fewest Edges
    •                                          run → Plan Distance
    •                                 max(rise, 0) → Total Climb
    •               length * (1 + 10 * abs(grade)) → Steepness Penalty
    • length / (6 * exp(-3.5 * abs(grade + 0.05))) → Hiking Time
    •         abs(grade) > 1.0 / 12 ? inf : length → Step-free Access
    •                               length / speed → Travel Time
    •                        length / speed + wait → Time Plus Waits
  5. Nx → Expression for the cost of passing through a node.
    •    0 → Free
    • wait → Wait

Output parameters:

  1. Nc → Cheapest cost of reaching each node from the start node, or null for unreachable nodes.
  2. Ec → Cost of travelling each edge from its start to its end node, null for impassable edges.
  3. Rc → Cost of travelling each edge from its end to its start node, null for one-way and impassable edges.