diff --git a/euclid.cpp b/euclid.cpp index 1e96fd69..ea6d5ae0 100644 --- a/euclid.cpp +++ b/euclid.cpp @@ -405,7 +405,7 @@ EX namespace euclid3 { axes regular_axes; intmatrix T, T2, T_edit; - int det; + EX int det; int infinite_dims; int twisted0, twisted_edit; diff --git a/geom-exp.cpp b/geom-exp.cpp index 98facdff..d3e7109e 100644 --- a/geom-exp.cpp +++ b/geom-exp.cpp @@ -589,17 +589,13 @@ EX void showEuclideanMenu() { denom /= g; } -/* - if(fulltorus) { - using namespace torusconfig; - auto& mode = tmodes[torus_mode]; - if(mode.flags & TF_SINGLE) - worldsize = qty; - else - worldsize = sdx * sdy; - worldsize = 0; + if(euclid && bounded) { + worldsize = euclid3::det; + if(BITRUNCATED) worldsize *= (a4 ? 2 : 3); + if(GOLDBERG) worldsize *= cgi.gpdata->area; + if(IRREGULAR) worldsize *= isize(irr::cells) / isize(irr::cells_of_heptagon); } - else TODO */ + else worldsize = denom ? nom / denom : 0; if(euler < 0 && !bounded)