From 63e855562c5f4e25f18744df652632d3400063dc Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 28 Apr 2022 08:23:07 +0200 Subject: [PATCH] fixed the problem where apeirogons got outside boundary --- arbitrile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arbitrile.cpp b/arbitrile.cpp index e6c18504..13780edc 100644 --- a/arbitrile.cpp +++ b/arbitrile.cpp @@ -1234,7 +1234,7 @@ struct hrmap_arbi : hrmap { hyperpoint get_corner(cell *c, int cid, ld cf) override { auto& sh = arb::current_or_slided().shapes[arb::id_of(c->master)]; int id = gmod(cid, c->type); - if(sh.angles[id] <= 0) + if(sh.angles[gmod(id-1, c->type)] <= 0) return sh.vertices[id]; return normalize(C0 + (sh.vertices[id] - C0) * 3 / cf); }