Repository navigation
Peeling the orange: gores and the spiral peel - #66
Merged
Merged
Conversation
New page peel.html: the globe peeled in gores from pole to pole (each flattened as sinu, cass or tmerc on its own central meridian, laid out as a flower joined at the south pole or a row joined at the equator) or in one spiral strip, with the 3D peel beside the flat pieces. A table compares the three gore flattenings; the spiral's flat centre line is drawn against the Euler spiral it tends to (Bartholdi and Henriques 2012). src/core/peel.js holds the geometry; test/check-peel.mjs checks the gores against PROJ 9.8 (fixture from test/make-peel-fixture.py), what each keeps, the rates their errors fall at, and the spiral's curvature and limit. Nav link after Globals and interrupteds on every page; guide and globals link to it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PpVmmmt2y5vcxh1tzDyfyi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Michael · project thread
New page
peel.html, after Globals and interrupteds in the nav. It treats globe gores and peeling an orange as one topic, and asks whether orange peel can be a sinusoidal map.Gores. You choose n gores from pole to pole. Each is flattened on its own central meridian as
sinu,cassortmercon the sphere. They are laid out either as a flower joined at the south pole (the way an orange is peeled) or as a row joined at the equator (withsinu, this is the interrupted sinusoidal). The 3D view opens the flower: each gore is wrapped on a sphere of radius 1/(1 - p) that touches the orange at its south pole. A table compares the three flattenings for the current n by worst area, angle and stretch error, and by how much longer the flat edge is than the meridian it came from.Spiral. One strip of constant width is wound from pole to pole. Its flat centre line turns at tan(latitude). The flat strip is drawn against the Euler spiral it tends to (Bartholdi and Henriques 2012, Orange peels and Fresnel integrals). The readout says how much of the strip stays within half a width of that spiral. In 3D, the peeled part lies in the plane that touches the orange where the peel comes away.
The answer the page gives. A gore whose parallels keep their length is a sinusoidal gore. Peel, though, can hardly stretch at all. The sinusoidal keeps area but shears near the poles: for 12 gores, angles are off by up to 15 degrees. That shear only halves when the gore width halves. Cassini and transverse Mercator stretch by at most 3.5%, and their error falls with the square of the width. So a real segment of peel is nearer a Cassini or transverse Mercator gore.
Files
src/core/peel.js: the geometry (pure core, exported fromsrc/core/index.js)js/peel.js,peel.html, plus a few lines incss/app.csstest/check-peel.mjs(added tonpm test): checks the gores against PROJ 9.8 (fixture fromtest/make-peel-fixture.py), their inverses, what each keeps, the w and w^2 rates, both ends of the peel, and the spiral's curvature, length and limitChecks
npm testpasses.playproj-shots/peel-*.png.Generated by Claude Code