From 1cab16aae728260098da8e06d8077437b2051e08 Mon Sep 17 00:00:00 2001 From: ? Date: Mon, 25 Feb 2019 19:11:04 +0100 Subject: [PATCH] 3d:: grids --- graph.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/graph.cpp b/graph.cpp index 144255f2..aad1ab54 100644 --- a/graph.cpp +++ b/graph.cpp @@ -5130,6 +5130,17 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) { prec += vid.linequality; if(0); + #if MAXDIM == 4 + else if(DIM == 3) { + for(int t=0; ttype; t++) { + if(!c->move(t)) continue; + if(hyperbolic && !among(t, 5, 6, 8)) continue; + if(!hyperbolic && c->move(t) < c) continue; + dynamicval p (poly_outline, gridcolor(c, c->move(t))); + queuepoly(V, shBinaryWall[t], 0); + } + } + #endif #if CAP_BT else if(binarytiling && DIM == 2) { ld yx = log(2) / 2; @@ -5147,11 +5158,6 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) { horizontal(yy, -xx, -2*xx, 4, binary::bd_up_left); } #endif - #if CAP_BT && MAXDIM == 4 - else if(binarytiling && DIM == 3) { - binary::queuecube(V, 1, 0xC0C0C080, 0); - } - #endif else if(isWarped(c) && has_nice_dual()) { if(pseudohept(c)) for(int t=0; ttype; t++) queueline(V * get_warp_corner(c, t%c->type),