/ concept-collection / turing-surface
Sign in
concept-collection / turing-surface
Drop the work-in-progress banner
The geometry has been in the operator since the flux-form Laplace-Beltrami scheme landed, so the banner's claim -- that other shapes show the sphere's pattern painted onto them -- has been false for a while. Removes it along with the .warn rule and the six --warn-* variables, which nothing else used. Two neighbours said the same stale thing and go with it: the geometry picker's tooltip ("Rendered, but not yet in the operator") and the per-surface note in the page ("Rendered only"). The intro also called the shape compiled, which it no longer is.
Dan Fortunato <dan.fortunato@gmail.com> committed commit f132fe4f0b3c parent 0ae15cf Browse files
2 changed files+4−29
index.htmlmodified+2−24View file
@@ -18,9 +18,6 @@
1818 --tok-num: #0550ae;
1919 --tok-kw: #cf222e;
2020 --tok-ext: #8250df;
21- --warn-bg: #fff8e5;
22- --warn-line: #e3c37a;
23- --warn-edge: #bf8700;
2421 color-scheme: light dark;
2522 }
2623 @media (prefers-color-scheme: dark) {
@@ -36,9 +33,6 @@
3633 --tok-num: #79c0ff;
3734 --tok-kw: #ff7b72;
3835 --tok-ext: #d2a8ff;
39- --warn-bg: #2b2410;
40- --warn-line: #6b5518;
41- --warn-edge: #e3b341;
4236 }
4337 }
4438 body {
@@ -111,17 +105,6 @@
111105 color: var(--ink); user-select: all;
112106 }
113107 #blurb { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
114- .warn {
115- margin: 0 0 14px;
116- padding: 10px 14px;
117- border: 1px solid var(--warn-line);
118- border-left: 5px solid var(--warn-edge);
119- border-radius: 6px;
120- background: var(--warn-bg);
121- color: var(--ink);
122- font-size: 13.5px; line-height: 1.5;
123- }
124- .warn b { color: var(--warn-edge); }
125108 #err { color: #b35900; white-space: pre-wrap; font-size: 13px; }
126109 .editor {
127110 margin-top: 12px; border: 1px solid var(--line); border-radius: 8px;
@@ -181,16 +164,11 @@
181164 <body>
182165 <main>
183166 <h1>turing-surface</h1>
184- <p class="warn">
185- <b>⚠ Work in progress: the geometry is drawn, not solved on.</b>
186- The solver still uses the round sphere's Laplace–Beltrami operator, so
187- on other shapes you see the sphere's pattern painted onto that surface.
188- </p>
189167 <p class="sub">
190168 Reaction-diffusion on closed surfaces, solved live with spherical
191169 harmonics on WebGPU via
192170 <a href="https://github.com/concept-collection/shtns-webgpu">shtns-webgpu</a>.
193- Both the solver and the shape are the MATLAB below, compiled in your
171+ Both the solver and the shape are the MATLAB below, run in your
194172 browser by <a href="https://numbl.org">numbl</a>. Edit either and watch
195173 it change. Drag to rotate.
196174 </p>
@@ -198,7 +176,7 @@
198176 <label>preset
199177 <select id="model"></select>
200178 </label>
201- <label title="The surface. Rendered, but not yet in the operator.">geometry
179+ <label title="The surface the pattern is solved on. Swapping it does not recompile the solver or restart the run.">geometry
202180 <select id="geometry"></select>
203181 </label>
204182 <label title="Blend between the sphere (0) and the surface (1). Display only.">morph
src/main.tsmodified+2−5View file
@@ -16,7 +16,6 @@ import {
1616 mGeometries,
1717 mGeometryByKey,
1818 defaultGeometryParams,
19- SPHERE_KEY,
2019 DEFAULT_GEOMETRY_KEY,
2120 type MGeometry,
2221 } from './geom/registry.ts';
@@ -633,18 +632,16 @@ function applyMorph(): void {
633632 for (const s of scenes) s.updatePositions(posBuf);
634633 }
635634
636-/** What the surface is, and the standing caveat about where it is not. */
635+/** What the surface is, and how far it departs from the sphere. */
637636 function updateGeomNote(): void {
638637 if (!session) {
639638 elGeomNote.textContent = '';
640639 return;
641640 }
642641 const { lo, hi } = session.geometry.radiusRange();
643- const isSphere = session.geometryModel.key === SPHERE_KEY;
644642 elGeomNote.innerHTML =
645643 `<b>${session.geometryModel.label}</b> — ${session.geometryModel.blurb} ` +
646- `Radius ${lo.toFixed(3)}–${hi.toFixed(3)}.` +
647- (isSphere ? '' : ' <b>Rendered only</b> — not yet in the operator.');
644+ `Radius ${lo.toFixed(3)}–${hi.toFixed(3)}.`;
648645 }
649646
650647 /** Report a compile failure, and select the offending text in the editor. */
moveopenescclose