Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Sleeve routing

routing connector-routing

Sleeve routing finds smooth any-angle routes around rectangular obstacles, not only horizontal and vertical ones. It splits the free space into triangles with a constrained Delaunay triangulation, which keeps every obstacle side as a triangle edge. Dijkstra's algorithm over neighbouring free triangles picks a sleeve, a corridor of triangles from source to target. The funnel algorithm then pulls the route tight inside the sleeve, so it bends only at obstacle corners. The route is the shortest one inside its sleeve, but not always the shortest overall.

Pseudocode

algorithm SleeveRoute(s, t)input: points s and t, constrained Delaunay triangulation D of the frame (obstacle sides are edges)output: a taut any-angle route from s to t, or failureif straight-is-free(s, t) thenreturn ⟨s, t⟩X ← exits(s)              ▷ s, or the nearest free vertices along walls of touching boxesT ← dijkstra(dual(D), X)  ▷ free triangles only; edges weighted by centroid distanceif no triangle at t is reached in T thenreturn failureσ ← triangles on the T path to t          ▷ the sleevereturn walk-to(X) followed by funnel(s, t, portals(σ))function funnel(s, t, P)▷ P lists the shared triangle edges as (left, right) in the direction of travelG ← ⟨(s, s)⟩ ++ P ++ ⟨(t, t)⟩path ← ⟨s⟩apex, l, r ← s, s, si ← 1while i < |G| do(pl, pr) ← G[i]if orient(apex, r, pr) ≥ 0 then         ▷ pr does not widen the right sideif apex = r or orient(apex, l, pr) < 0 thenr ← prelseapex ← l                            ▷ the sides cross: l is a corner of the routeappend(path, l)r, i ← apex, index(l) + 1continue▷ the left side is tightened the same way, mirroredi ← i + 1append(path, t)return path

In the crates

  • connector-routing

    Any-angle routes through an exact constrained Delaunay triangulation, dual-graph Dijkstra and the funnel algorithm.

    SleeveRouter

Lineage

Comes from

combines Dijkstra's algorithm

combines Funnel algorithm

builds on Constrained Delaunay triangulation

Led to

Nothing on this site.

Papers

  1. Browsing Large Graphs with Tile Pyramids and Sleeve Routing in the Browser Lev Nachmanson, Xiaoji Chen · 2026 introduces arXiv 2605.17498