โ† All examples

mesh algorithms

Clothoid transition road

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.

Recorded render of Clothoid transition road

What this component contains

  • ATTRIBUTION.md
  • LICENSE
  • README.md
  • clothoid_road.py
  • component.json
  • example.gltf
  • meshkit.py
  • preview.png
  • test_package.py
  • verification/native.json

How it works

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

Recorded checks

godot 4.7.2.stable.official.ed1daf0bf

  • generator_runs_system_python
  • generator_runs_verifier_python
  • gltf_strict_structure
  • interpreters_agree
  • example_matches_generator
  • godot_headless_gltf_load
  • godot_compatibility_render

Limits to consider

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.