From 432583d6ce7df7bcc759cd1fd875511e5405c13a Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 27 Dec 2019 11:30:27 +0100 Subject: [PATCH] fixed euc::full_coords2 in bitruncated {4,4} --- euclid.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/euclid.cpp b/euclid.cpp index e21efd15..e3db97b3 100644 --- a/euclid.cpp +++ b/euclid.cpp @@ -1041,6 +1041,15 @@ EX int dcross(gp::loc e1, gp::loc e2) { EX gp::loc full_coords2(cell *c) { auto ans = eucmap()->ispacemap[c->master]; + if(S7 == 4 && BITRUNCATED) { + if(c == c->master->c7) return to_loc(ans) * gp::loc(1,1); + else { + auto res = full_coords2(c->cmove(0)) + full_coords2(c->cmove(4)); + res.first /= 2; + res.second /= 2; + return res; + } + } if(BITRUNCATED) return to_loc(ans) * gp::loc(1,1) + (c == c->master->c7 ? gp::loc(0,0) : gp::eudir((c->c.spin(0)+4)%6)); if(GOLDBERG) {