summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-11-17 09:16:26 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-11-17 09:16:26 +0100
commitc831403059842452eb284e4319f23f7694987055 (patch)
tree3746b526507bfd147e4d3e68b46f1fac36479199
parentbc11f74636b216224b59a3a97f05b050a5ab7988 (diff)
web+core: clearer projection labels 'Normal (rectilinear)' / 'Panorama (cylindrical)'
The dropdown mixed styles ('Rectilinear projection' vs 'Cylindrical (panoramic)'). Both options now lead with the user-facing word and put the geometric name in parentheses. The same-side fit error refers to 'Panorama (cylindrical) mode' to match the menu entry.
-rw-r--r--crates/gipfel-core/src/lsq.rs2
-rw-r--r--crates/gipfel/src/app.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/gipfel-core/src/lsq.rs b/crates/gipfel-core/src/lsq.rs
index 078d421..fbce1a5 100644
--- a/crates/gipfel-core/src/lsq.rs
+++ b/crates/gipfel-core/src/lsq.rs
@@ -469,7 +469,7 @@ pub fn comp_params(
let ratio = far.x.abs() / near.x.abs();
if ratio < min_ratio * 0.9 {
return bail(format!(
- "{} is {:.1} times farther from the image center than {} ({:.0} px vs {:.0} px, both {} of center). A pair {:.1} deg apart in azimuth needs a distance ratio of at least {:.0} in rectilinear mode. This looks like a panorama - switch to cylindrical mode, or place the view center between the peaks.",
+ "{} is {:.1} times farther from the image center than {} ({:.0} px vs {:.0} px, both {} of center). A pair {:.1} deg apart in azimuth needs a distance ratio of at least {:.0} in rectilinear mode. This looks like a panorama - switch to Panorama (cylindrical) mode, or place the view center between the peaks.",
far.name,
ratio,
near.name,
diff --git a/crates/gipfel/src/app.rs b/crates/gipfel/src/app.rs
index c2a184d..d6ac231 100644
--- a/crates/gipfel/src/app.rs
+++ b/crates/gipfel/src/app.rs
@@ -1462,8 +1462,8 @@ pub fn app() -> Html {
value={vp.roll} min={-10.0} max={10.0} step={0.01} onchange={on_roll} />
<div class="section">{ "Projection" }</div>
<select class="textinput" onchange={on_projection}>
- <option value="0" selected={*projection == 0}>{ "Rectilinear projection" }</option>
- <option value="1" selected={*projection == 1}>{ "Cylindrical (panoramic)" }</option>
+ <option value="0" selected={*projection == 0}>{ "Normal (rectilinear)" }</option>
+ <option value="1" selected={*projection == 1}>{ "Panorama (cylindrical)" }</option>
</select>
// Distortion only affects the rectilinear
// projection: the cylindrical formulas do not