diff --git a/binary-tiling.cpp b/binary-tiling.cpp index 24453202..66057f35 100644 --- a/binary-tiling.cpp +++ b/binary-tiling.cpp @@ -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) { diff --git a/hypgraph.cpp b/hypgraph.cpp index 99d05b5e..5c023984 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -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) {