From ebfe1aeac28cf90557bc05298b967730b489aeb2 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 30 Sep 2018 16:23:20 +0200 Subject: [PATCH] virtualRebase on hyperpoint now works at large distances --- geometry2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/geometry2.cpp b/geometry2.cpp index 67ad2f49..047e2b31 100644 --- a/geometry2.cpp +++ b/geometry2.cpp @@ -322,7 +322,8 @@ void virtualRebase(cell*& base, transmatrix& at, bool tohex) { } void virtualRebase(cell*& base, hyperpoint& h, bool tohex) { - virtualRebase(base, h, tohex, [] (const hyperpoint& h) { return h; }); + // we perform fixing in check, so that it works with larger range + virtualRebase(base, h, tohex, [] (const hyperpoint& h) { return hyperbolic ? hpxy(h[0], h[1]) :h; }); } // works only in geometries similar to the standard one, and only on heptagons