# Does RRT* Work on Uneven Terrain Meshes?

Robotics.world

> RRT* cannot be run as-is on triangle-mesh terrain, and the obvious mesh variant optimizes chord length rather than geodesic path cost, invalidating a common planning shortcut.

**arXiv**: 2611.05885 · Preprint · not peer-reviewed

**Published**: 2026-11-04

**Authors**: Otobong Jerome, Tiago Nascimento

## In plain words

RRT\* comes with asymptotic-optimality guarantees that assume an open subset of Euclidean space with volume, uniform sampling and straight-line local planning — none of which a zero-volume triangle mesh provides.

## AI summary

## Overview

**Research area:** Sampling-based motion planning on surface representations (RRT* and geodesic path planning on triangle-mesh terrain), with links to field robotics and surface-bound aerial vehicles.

**Technical level:** Intermediate. The paper is readable with a working knowledge of RRT*/RRT* and basic mesh geometry, but it uses geodesic terminology (MMP, unfolding, dihedral angles) and a cost/optimality analysis that rewards familiarity with the RRT* optimality proofs of Karaman and Frazzoli.

**Scope (one sentence):** The paper asks whether the optimal rapidly exploring random tree (RRT*) can be run on a triangle-mesh terrain, and measures what a naive chord-based implementation actually optimises versus a surface-consistent one, using exact MMP geodesics as ground truth.

## What This Paper Is About

RRT* comes with asymptotic-optimality guarantees that assume an open subset of Euclidean space with volume, uniform sampling and straight-line local planning — none of which a zero-volume triangle mesh provides. The authors first argue that the literal algorithm cannot run on a mesh at all, then build a surface reformulation ("Mesh RRT*") and compare two versions of its `Line` primitive: a naive one that connects nodes with straight chords costed by Euclidean length, and a consistent one that connects them with polygonal paths lying on the surface and costed by their own length. The goal is to show that the naive chord version optimises and reports a cost that no path on the surface can attain, and that fixing the `Line` primitive alone is enough to make the planner's reported cost match the length of the route it returns.

## Key Contributions

1. **A structural argument that literal RRT* cannot run on a mesh:** the surface has zero Lebesgue measure in ℝ³, so uniform sampling never hits it and no clearance ball B(x, δ) fits inside it; straight lines between points on different non-coplanar faces leave the surface, so `CollisionFree` would reject every edge. This holds regardless of how uneven the terrain is — only a perfectly flat mesh escapes.
2. **Mesh RRT*, a primitive-by-primitive port of Algorithm 6 of Karaman and Frazzoli to a 2-manifold, with two implementations of `Line`:** naive (chords costed by Euclidean length) and consistent (surface polylines built by bisection, projection and unfolding across shared edges, costed by their own length), with everything else identical.
3. **The chord-polyline cost J_{η,τ} and its analysis:** a proof (Proposition 1) that J_{η,τ}(P) ≤ L_S(P) for every admissible chord polyline, with equality only if every segment lies on the surface; and a proof (Proposition 2) that the chord optimum J*_{η,τ}(a,b) lies strictly below the geodesic distance c* whenever the geodesic bends, so every value below c* is a cost no feasible path attains. The paper also explains why rewiring keeps the biased edges, and derives scaling laws: quadratic in the step on smooth surfaces (κ²η²/24 relative gap) but only linear in the step on polyhedral surfaces (about ηθ²/8 per bend).
4. **Experiments against exact MMP geodesics on terrains of controlled roughness**, including a dense-graph estimate J*_{η,τ,k} of the chord optimum, the dependence of the bias on step η and tolerance τ, and convergence of both variants — plus an implementation in MeshNav3D 0.2.0 (release pending).

## Main Findings

- **The literal algorithm fails for structural reasons, not terrain difficulty:** μ(S) = 0 in ℝ³ means `SampleFree` is empty almost surely; no ball fits inside a surface so no problem is robustly feasible and Theorems 23 and 38 of the RRT* reference have no content; and `Line(x₁, x₂) ⊄ S` for almost every pair of points on different non-coplanar faces.
- **The chord variant converges, but to the wrong number:** chord RRT* found a solution in every run and solved heightfields with slopes up to 75°, but after 30 000 iterations reported costs fell to 0.996, 0.989 and 0.973 of c* at amplitudes 1, 2 and 4. The reported cost is on average up to 2.7% below the exact geodesic — a cost no path attains — while the returned routes themselves are 0.1–0.5% longer than the geodesic (individual chord routes 0.04–1.1% long, individual reported costs reaching 3.3% below c*).
- **The surface variant converges to the optimum:** its final routes measure 1.0007, 1.0007, 1.0011 and 1.0016 of c* at amplitudes 0.5, 1, 2 and 4 — within 0.07–0.16% — which is two to 3.4 times closer than the chord routes at amplitudes 1–4 (1.2 times at amplitude 0.5, where both are within 0.1%). Its reported costs (1.0007, 1.0007, 1.0012, 1.0021) lie at or above its routes' exact lengths, as the length of a feasible path must.
- **The flat control isolates curvature as the cause:** on the flat plane both variants converge to the same cost, 1.0007 of the straight line, matching planar RRT*; the discrepancy on curved terrain is therefore attributable to curvature, not to implementation details.
- **Rewiring does not remove the bias:** under J_{η,τ} a single chord of up to η that cuts below a bend is cheaper than any chain of short edges following the surface, because it omits the length it skips — so the cutting chords are exactly the edges rewiring keeps. Between 30 000 and 60 000 iterations, chord cost changes by at most 2×10⁻⁴ of c* (a plateau at J*_{η,τ,k}), while the surface cost still falls by up to 2.7×10⁻³.
- **The dense-graph estimate confirms the theory (N = 8000):** chord J*_{η,τ,k}/c* = 0.9975, 0.9890 and 0.9733 at amplitudes 1, 2 and 4, with the exact length of the minimiser at 1.0025, 1.0043 and 1.0044. The chord optimum moves further below c* as density grows (1.015 at N = 2000 to 0.986 at N = 16 000 at amplitude 2), while the surface optimum approaches c* from above (1.025 to 1.001).
- **The bias decays only linearly in the step on a mesh:** resampling the exact geodesic at spacing η gives shortfall ratios of 1.5–2.3 per doubling of η, against the factor of 4 predicted by the smooth-surface expansion — so halving the step halves the gap at roughly four times the sampling cost.
- **Tolerance trades bias for connectivity:** tightening τ from 0.15η to 0.05η moves the chord optimum toward c* but leaves it below (0.9966 at amplitude 2, 0.9870 reported by the planner at amplitude 4). At 0.02η the estimate rises above c* (1.0066) but 47–52% of candidate edges are inadmissible and the selected route's surface length worsens to 1.0–1.6%; at 0.005η three quarters of edges are gone and routes are 14–23% long. Doubling to N = 16 000 restores connectivity at 0.02η and the estimate drops back below c* (0.999 and 0.995). In the planner, tightening to 0.02η raises rejections from 0.1–1.4% to 58–63%, delays the first solution 28- to 61-fold (from 71–140 to 3900–4300 iterations), leaves 1–2 of 15 runs solved after 2000 iterations, and still leaves the reported cost at or below c* after 30 000 iterations.
- **The surface primitive is cheap and rejects no more than the chord:** it costs 1.2 times the chord's time per iteration on the reference terrain, and 1.4 and 1.5 times at amplitudes 2 and 4. Its polylines are longer than the geodesic between the same nodes by only 0.002, 0.01 and 0.05% of c* on average at amplitudes 1, 2 and 4, and the first solution came no later than the chord's (131 against 140 iterations at amplitude 4).
- **Consistency is exact for the surface primitive:** every polyline vertex lies on S and consecutive vertices share a face, so its cost can never fall below the surface distance between the edge's endpoints. On the terrains tested, no edge was rejected for a projection jump between faces sharing no vertex; every rejection was a tolerance failure at a bisection point (1.2% of candidate edges at amplitude 4 and 0.1% at amplitude 2, against 1.4% and 0.1% for the chord's tolerance test).

## Methodology in Plain English

The authors split the question into a literal form and a practical form. For the literal form, they check what each requirement of the RRT* algorithm and its optimality proofs needs — positive volume, uniform sampling, clearance balls, straight-line local planning — and show each fails on a triangle mesh.

For the practical form, they reformulate the problem on the surface: sample faces with probability proportional to area and points uniformly inside them by barycentric coordinates, with goal-biased sampling at p_goal = 0.1; use Euclidean nearest-neighbour and a near radius r(n) = min{γ_{RRT*}√(log n/n), η} with γ_{RRT*} = 1.1 × 2√1.5 × √(area(S)/π); steer at most η and project back onto the mesh; and add three small departures from the original listing (the nearest vertex is also a rewiring candidate, a vertex is inserted whenever any candidate parent has a valid edge, and a steered point coinciding with an existing vertex re-chooses that vertex's parent).

The two `Line` implementations differ only in what an edge *is* and what it *costs*. The chord version uses the straight segment and its Euclidean length, testing k = 3 uniformly spaced interior points per step against a tolerance τ = 0.15η. The surface version bisects the chord, projects the midpoint onto the mesh, and recurses until consecutive points lie on one face or on two edge-adjacent faces; those are joined by the segment on the face or by the straight line in the unfolding of the two faces, with the crossing point inserted. A projected point farther than τ from the surface rejects the edge.

They test on synthetic egg-crate heightfields z = A sin(ωx) sin(ωy) on a 10×10 square triangulated on a 23×23 grid (529 vertices, 968 faces), with ω = 2π×1.5/10 and amplitude A setting roughness: A = 0 is a flat control, A = 1 matches the terrain bundled with MeshNav3D (z = sin x cos y, 1.59 periods per side, 45° maximum slope, against 1.5 and 43° here; mean edge 0.57 in both), and A = 4 has mean edge 1.01 and slopes up to 75°. Five random start–goal vertex pairs at least half the diagonal apart are drawn once and reused at every amplitude, with three seeds per scenario and 30 000 iterations, recording the best cost after every iteration.

Ground truth is the exact MMP geodesic from pygeodesic. The reported cost is compared with c*, and the surface length L_S of the returned route is computed exactly by splitting the mesh at the route's nodes and summing MMP geodesics between consecutive nodes. A separate dense-graph experiment (N = 8000, plus N = 2000 and 16 000 for density checks) connects all pairs closer than η that pass the edge test and runs Dijkstra, giving the cost optimum independent of the tree's randomness; a step-scaling experiment resamples the exact geodesic at spacing η to isolate the chord gap for a fixed path. A* on the mesh edge graph and Theta* serve as graph-planner reference points.

## Why This Matters

The paper separates two quantities that RRT* users normally treat as identical: the *length* of a route (how far a robot travels on the surface, measured exactly) and the *cost* the planner computes, optimises and reports. On a mesh they coincide only if the `Line` primitive makes them coincide. A planner charging chord lengths reports a number below any physically realisable path, so a mesh planner's reported cost cannot be used as a trustworthy measure of route quality — and the returned route is still 0.1–0.5% longer than the geodesic under the naive primitive. The fix is local: replacing one primitive, with no other change, brings reported cost and actual route length into agreement.

**Real-world applications:**

- Ground robots on rough terrain, where the natural cost is geodesic length along a triangle mesh and planning quality is judged against that length.
- Surface-bound aerial vehicles steered along a mesh surface, including inspection of curved structures such as dams, hulls and turbine blades.
- Field robotics in uneven outdoor environments where the terrain is reconstructed as a mesh from sensing, and where a planner's reported cost feeds into mission-level decisions.
- Benchmarking and validation of sampling-based planners against exact geodesic solvers (MMP, fast marching, heat method) and graph planners (Dijkstra, A*, Theta*).

**Industry relevance:** any stack that reports a planning cost to an operator, a downstream controller or a comparison table needs that cost to correspond to a feasible route. The paper shows that this can be violated silently — the planner still succeeds, still converges, and still looks optimal — while the supplied implementation (MeshNav3D 0.2.0, release pending) makes the correct primitive available at a 1.2–1.5× per-iteration time cost on the tested terrains.

## Future Directions

- **Transferring the asymptotic-optimality proof to the surface.** The paper explicitly leaves open whether Theorem 38 of Karaman and Frazzoli can be adapted to the surface; it only estimates J*_{η,τ,k} independently of the tree and observes the tree's cost approaching it.
- **Quantifying the gap c* − J*_{η,τ}.** Proposition 2 proves the chord optimum lies strictly below the geodesic but does not quantify by how much; the paper measures the dependence on η and τ empirically and derives scaling laws, leaving a general bound open.
- **Choosing η and τ in practice.** The results give a trade-off rather than a rule: the bias is linear in the step on a polyhedral surface while sample complexity grows faster, and tightening τ only raises the sample density at which the bias reappears. A principled selection rule for a given mesh and tolerance budget is not provided.
- **Extending beyond the tested geometry.** All terrains are synthetic egg-crate heightfields with 529 vertices and 968 faces, five scenario pairs, and a diagonal-split flat control; whether the conclusions hold on scanned real-world meshes with holes, boundaries, non-heightfield geometry or much larger scale is not tested. The paper notes that the surface primitive's projection-jump rejection never triggered on these terrains, so its behaviour in that regime is untested.

## Target Audience

Robotics researchers and graduate students working on sampling-based motion planning, especially those applying RRT* outside the Euclidean setting or benchmarking planners against geodesic ground truth; practitioners building navigation stacks for ground robots or surface-bound aerial vehicles on mesh terrain; and anyone implementing a planner whose reported cost is consumed by a downstream system and needs to know whether that number corresponds to a route a robot can actually drive.

## Authors’ abstract

The optimal rapidly exploring random tree (RRT*) is proven asymptotically optimal on open subsets of Euclidean space with straight-line local planning. We ask whether it works on a triangle-mesh terrain, a two-dimensional surface in R^3. First, the original RRT* cannot run on a mesh: the surface has zero volume, so uniform sampling never hits it, no clearance ball fits in it, and chords across a fold leave it. Second, the surface reformulation we call Mesh RRT*, with its…

[The full abstract on arXiv](https://arxiv.org/abs/2611.05885)

[Read the original paper](https://arxiv.org/abs/2611.05885)

## Related papers

- [DQ-MPCC: Dual-Quaternion MPCC for Quadrotor Racing](https://robotics.world/paper/dq-mpcc-dual-quaternion-mpcc-for-quadrotor-racing-2609.36482) 2026-09-29 · cs.RO · Also by Tiago Nascimento
- [Decentralized UAV Swarms for Ground Target Protection in GPS- and Communication-Denied Environments](https://robotics.world/paper/decentralized-uav-swarms-for-ground-target-protection-in-gps-and-2607.20710) 2026-07-22 · cs.RO · Also by Tiago Nascimento
- [Contact-Implicit Whole-Body Trajectory Optimization for Dynamic Humanoid Locomotion on Parameterizable Uneven Terrain](https://robotics.world/paper/contact-implicit-whole-body-trajectory-optimization-for-dynamic-2611.05585) 2026-11-03 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/does-rrt-work-on-uneven-terrain-meshes-2611.05885
