From c645001ddb5c6e7b55421c1fd3136c9f2f414798 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 26 May 2025 08:39:34 +0200 Subject: [PATCH] fixed the bug with too large floors in pure Euclidean square --- geometry.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/geometry.cpp b/geometry.cpp index 862efc55..c8aea354 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -854,8 +854,11 @@ void geometry_information::prepare_basics() { floorrad1 = rhexf * (GDIM == 3 ? 1 : 1 - 0.06 * global_boundary_ratio); if(euc::in(2,4)) { - if(!BITRUNCATED) - floorrad0 = floorrad1 = rhexf * (GDIM == 3 ? 1 : .94); + if(!BITRUNCATED) { + ld sca = (GDIM == 3 ? 1 : .94); + floorrad0 = hexvdist * sca; + floorrad1 = rhexf * sca; + } else floorrad0 = hexvdist * (GDIM == 3 ? 1 : .9), floorrad1 = rhexf * (GDIM == 3 ? 1 : .8);