From 756f4b3cd99e6c34e984b6ee12d92ce64420d727 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 18 Jan 2020 17:19:58 +0100 Subject: [PATCH] in hpcpush further increased error_threshold unless Euclidean --- polygons.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/polygons.cpp b/polygons.cpp index 4f487ad6..f1c39cf3 100644 --- a/polygons.cpp +++ b/polygons.cpp @@ -17,10 +17,11 @@ static constexpr ld WOLF = (-15.5); void geometry_information::hpcpush(hyperpoint h) { if(sphere) h = mid(h,h); - ld threshold = (GDIM == 3 || last->flags & POLY_TRIANGLES) ? 100 : (sphere ? (ISMOBWEB || NONSTDVAR ? .04 : .001) : 0.1) * pow(.25, vid.linequality); + ld error_threshold = euclid ? 1000 : 1e10; + ld threshold = (GDIM == 3 || last->flags & POLY_TRIANGLES) ? error_threshold : (sphere ? (ISMOBWEB || NONSTDVAR ? .04 : .001) : 0.1) * pow(.25, vid.linequality); if(/*vid.usingGL && */!first) { ld i = intval(hpc.back(), h); - if(i > threshold && (i < 100 || S3 >= OINF)) { + if(i > threshold && i < error_threshold) { hyperpoint md = mid(hpc.back(), h); hpcpush(md); hpcpush(h);