Baltor Get started

Gallery / Mesh algorithms

Clothoid transition road

In your harnessMesh algorithmMIT

Lay out a road bend from a straight, a clothoid (Euler spiral) easing into a circular arc and a clothoid back, with exact Fresnel-series geometry and a coloured ribbon. Use it for roads, tracks and rails.

Render of Clothoid transition road
The render its check recorded in Godot 4.7.2, 256 by 256 pixels.

What it takes and gives

Entry points
clothoid_point, curvature_at, centre_line, road, main
Parameters
radius, transition, arc_angle, width, step
Complexity
O(length / step) points, each a short power series
Axes
+Y up, metres

Limits. A flat road in one plane: no banking, crown or elevation profile. One left-hand bend between two straights; chain several calls for longer layouts. The series is evaluated in double precision, accurate to about 1e-10 m for transitions of a few hundred metres.

Details

Kind
Mesh algorithm
Engine
Python 3.10 or later
Files
10 files, 183.3 KB
Licence
MIT
Declared effects
reads files, runs commands, writes files
Checked with
Godot 4.7.2, gl_compatibility, OpenGL 3 driver, Mesa llvmpipe under Xvfb
Checks
generator runs system python, generator runs verifier python, gltf strict structure, interpreters agree, example matches generator, godot headless gltf load, godot compatibility render
Techniques
Clothoid (Euler spiral) with curvature proportional to arc length, Fresnel integrals by power series, Piecewise integration at curvature breakpoints
Tags
clothoid, euler spiral, road, fresnel, transition curve, track
Identity
library.supply.creative_originals.50e7b239486d7d262d74ae5e.210cdcc78f795d1a
Version
210cdcc78f795d1a2afcc1e971604d816922f8db693bda4dd02de3359ba9e706

The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.

Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.