Pranjal Sailwal

recovering from log

  1. seq 0000recovering from log

Geodesic Flow and Spectro-Geodesic Explorer

“What happens to light if curvature bends each colour differently?”

Two linked research tools: geodesics on curved surfaces in WebAssembly, then light that splits by wavelength as it travels them

2

preprints on ResearchGate about the geodesic tools: the wavelength-resolved explorer and the WebAssembly engine

10

parametric surfaces to explore, from sphere to Klein bottle

12

wavelengths sampled from 380 to 780 nm

Reel 1 of 9: Now showing

Scroll to watch. Click someone in the audience.

  • In the audience

Now showing

Geodesic Flow and Spectro-Geodesic Explorer

Two linked research tools: geodesics on curved surfaces in WebAssembly, then light that splits by wavelength as it travels them

The case in short.

The problem
The shortest path on a curved surface is a differential equation. Solving it interactively, then asking what happens when different wavelengths take slightly different paths, needs both exact geometry and careful numerical integration.
Who it is for
Students and researchers of differential geometry and optics. The explorer is written up as a preprint.
My part
Sole author of both tools and the preprint.

How it was done

  1. I compute Christoffel symbols and Gaussian and mean curvature, and integrate the geodesic equation with 4th-order Runge-Kutta, in C++ compiled to WebAssembly.
  2. I added curvature-sensitive adaptive stepping so tight regions are integrated more carefully.
  3. The explorer samples 12 wavelengths from 380 to 780 nm across 10 parametric surfaces with analytic derivatives, in Web Workers.
  4. I introduced a dispersion-curvature coupling and a curvature-weighted spectral allocation, and checked them with numerical validation and convergence tests.
  5. On a 12th-generation i5 it computes in under two seconds.

What came out

Two working browser tools and a preprint that cites the path tracer paper.

What it rests on.

Every figure about this project, and how each one is known. The folder structure, languages and history on the right are read straight from GitHub, so they say what the code is, not what I wish it were.

2preprints on ResearchGate about the geodesic tools: the wavelength-resolved explorer and the WebAssembly engine
10parametric surfaces to explore, from sphere to Klein bottle
12wavelengths sampled from 380 to 780 nm
1.2 sto compute on the fast preset of a 12th-gen i5 (the README's table: about 2.1 s on medium, 5.3 s on high)
github.com / sailwalpranjal / geodesic-flow-visualizer

3

commits

13

files

5

folders

106 KB

on disk

  • HTML 50%
  • C++ 46%
  • Shell 4.0%
  • geodesic-flow-visualizer/
  • geodesic-visualizer/11 files
    • include/
    • src/
    • web/
  • LICENSE
  • README.md
Oct 2025 → Oct 2025.hpp ×3.cpp ×3.sh ×2.(none) ×1.md ×1

SecureHost Control Suite

A Windows service, GUI and CLI for allowing or blocking network connections and devices by rule, with an audit trail

If you want to talk about how this was built, write to me.

  1. seq 0001you arrived
  2. seq 0002write back