From 632f8dbda53eb2242c1f1835def7db1722064311 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 31 Jan 2018 00:11:49 +0100 Subject: [PATCH] fixed largeS2-in-S3 and incorrect qvalid in Hypersian Rug --- rug.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rug.cpp b/rug.cpp index 27b084d2..11591728 100644 --- a/rug.cpp +++ b/rug.cpp @@ -250,7 +250,7 @@ rugpoint *addRugpoint(hyperpoint h, double dist) { else /* sphere/elliptic*/ { if(modelscale >= 1) // do as good as we can... - scale = M_PI / 2 - 1e-3, good_shape = false; + scale = M_PI / 2 - 1e-3, good_shape = false, m->valid = false; else scale = asin(modelscale); } m->flat = h * scale; @@ -612,6 +612,8 @@ void buildRug() { sort(points.begin(), points.end(), psort); verify(); + + for(auto p: points) if(p->valid) qvalid++; } // rug physics