fixed bucketing for euc_in_sl2

This commit is contained in:
Zeno Rogue 2023-01-07 12:55:28 +01:00
parent 0e2b9d07ee
commit 8dede9f8a0
1 changed files with 4 additions and 0 deletions

View File

@ -2905,6 +2905,10 @@ EX namespace dq {
EX queue<pair<heptagon*, shiftmatrix>> drawqueue;
EX unsigned bucketer(const shiftpoint& T) {
if(geom3::euc_in_sl2()) {
auto T1 = T; optimize_shift(T1);
return bucketer(T1.h) + unsigned(floor(T1.shift*81527+.5));
}
return bucketer(T.h) + unsigned(floor(T.shift*81527+.5));
}