btrange_cosh checked in do_draw

This commit is contained in:
? authored and Zeno Rogue committed 2019-09-12 22:38:40 +02:00
1 parent d08e58f404
commit e8fa30de4c
2 files changed
+8 -5

No files matched your search

+1 -5
View File
@@ -281,11 +281,7 @@ namespace binary {
cell *c = h->c7;
if(DIM == 2 && !do_draw(c, V)) continue;
if(DIM == 3) {
if(V[DIM][DIM] > btrange_cosh) continue;
setdist(c, 7, c);
}
if(!do_draw(c, V)) continue;
drawcell(c, V, 0, false);
if(DIM == 2) {
+7
View File
@@ -1589,6 +1589,13 @@ bool do_draw(cell *c) {
}
bool do_draw(cell *c, const transmatrix& T) {
if(DIM == 3) {
if(hyperbolic && V[DIM][DIM] > btrange_cosh) return false;
if(euclid && hypot_d(tC0(T), 3)) return false;
setdist(c, 7, c);
return true;
}
if(just_gmatrix && sphere) return true;
if(!do_draw(c)) return false;
if(euclid && pmodel == mdSpiral) {