fixed largeS2-in-S3 and incorrect qvalid in Hypersian Rug

This commit is contained in:
Zeno Rogue 2018-01-31 00:11:49 +01:00
parent 2dbfc6a4ec
commit 632f8dbda5
1 changed files with 3 additions and 1 deletions

View File

@ -250,7 +250,7 @@ rugpoint *addRugpoint(hyperpoint h, double dist) {
else /* sphere/elliptic*/ { else /* sphere/elliptic*/ {
if(modelscale >= 1) if(modelscale >= 1)
// do as good as we can... // 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); else scale = asin(modelscale);
} }
m->flat = h * scale; m->flat = h * scale;
@ -612,6 +612,8 @@ void buildRug() {
sort(points.begin(), points.end(), psort); sort(points.begin(), points.end(), psort);
verify(); verify();
for(auto p: points) if(p->valid) qvalid++;
} }
// rug physics // rug physics