From c3928fdc0114d23a31e3a47d068d79b99d424dc4 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 25 Mar 2020 13:47:52 +0100 Subject: [PATCH] fixed a crash in paracompact honeycombs --- reg3.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reg3.cpp b/reg3.cpp index c119c7fe..bba34df6 100644 --- a/reg3.cpp +++ b/reg3.cpp @@ -1566,8 +1566,8 @@ EX void construct_relations() { int last_i = -1; for(hyperpoint h: reg3::cellshape) { int i = 0, j = 0; - for(hyperpoint u: reg3::cellshape) if(hdist(h, full_X*u) < 1e-4) i++; - for(hyperpoint u: reg3::cellshape) if(hdist(h, full_R*u) < 1e-4) j++; + for(hyperpoint u: reg3::cellshape) if(hdist(h, full_X*u) < 5e-2) i++; + for(hyperpoint u: reg3::cellshape) if(hdist(h, full_R*u) < 5e-2) j++; if(last_i == -1) last_i = i; if(i != j || i != last_i) ok = false; }