From 161ed6a9a9da58f0af5e00fae2a82939fbd968c9 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 14 Aug 2019 21:08:45 +0200 Subject: [PATCH] models:: fixed errors on poles in CentralCyl --- hypgraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypgraph.cpp b/hypgraph.cpp index bf8f7442..ae31c967 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -679,7 +679,7 @@ EX void applymodel(hyperpoint H, hyperpoint& ret) { break; case mdCentralCyl: - makeband(H, ret, [] (ld& x, ld& y) { y = tan_auto(y); }); + makeband(H, ret, [] (ld& x, ld& y) { y = tan_auto(y); ld top = vid.yres * M_PI / current_display->radius; if(y>top) y=top; if(y<-top) y=-top; }); break; case mdCollignon: