From 1b8d9a5a24aeea617100f2993b8e5c8f5dbe2228 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 24 Nov 2019 23:39:30 +0100 Subject: [PATCH] geomexp:: dimension shown in geometry choice --- geom-exp.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/geom-exp.cpp b/geom-exp.cpp index 6cc890b4..13913865 100644 --- a/geom-exp.cpp +++ b/geom-exp.cpp @@ -559,16 +559,20 @@ EX string current_proj_name() { return XLAT("general perspective"); } +EX string dim_name() { + return " (" + its(WDIM) + "D)"; + } + EX string geometry_name() { switch(ginf[geometry].cclass) { case gcHyperbolic: - return XLAT("hyperbolic"); + return XLAT("hyperbolic") + dim_name(); case gcEuclid: - return XLAT("flat"); + return XLAT("flat") + dim_name(); case gcSphere: - return XLAT("spherical"); + return XLAT("spherical") + dim_name(); case gcSolNIH: #if CAP_SOLV