From 6b91dc2d7d0861ab5e5e5dc0a2c7d3ab18b44da4 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 3 Apr 2019 20:32:30 +0200 Subject: [PATCH] 3d:: fixed invis_point and behindsphere --- hypgraph.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hypgraph.cpp b/hypgraph.cpp index 365c8523..3ef3970e 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -709,11 +709,11 @@ bool behindsphere(const hyperpoint& h) { if(mdBandAny()) return false; if(vid.alpha > 1) { - if(h[2] > -1/vid.alpha) return true; + if(h[DIM] > -1/vid.alpha) return true; } if(vid.alpha <= 1) { - if(h[2] < .2-vid.alpha) return true; + if(h[DIM] < .2-vid.alpha) return true; } return false; @@ -786,7 +786,7 @@ transmatrix applyspin(const heptspin& hs, const transmatrix& V) { } bool invis_point(const hyperpoint h) { - if(DIM == 2 || sphere) return false; + if(DIM == 2 || sphere || pmodel != mdPerspective) return false; return h[2] < 0; }