1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-26 18:10:35 +00:00

fixed a bug with configure_cylinder not knowing the correct tessf

This commit is contained in:
Zeno Rogue 2023-02-15 14:46:49 +01:00
parent 7cf7c6b216
commit 23f8be380d

View File

@ -198,6 +198,7 @@ EX namespace geom3 {
} }
EX void configure_clifford_torus() { EX void configure_clifford_torus() {
dynamicval<ld> dtessf(cgi.tessf, 1);
rug::clifford_torus ct; rug::clifford_torus ct;
if(hypot_d(2, ct.xh) < 1e-6 || hypot_d(2, ct.yh) < 1e-6) { if(hypot_d(2, ct.xh) < 1e-6 || hypot_d(2, ct.yh) < 1e-6) {
@ -222,6 +223,7 @@ EX namespace geom3 {
} }
EX void configure_cylinder() { EX void configure_cylinder() {
dynamicval<ld> dtessf(cgi.tessf, 1);
rug::clifford_torus ct; rug::clifford_torus ct;
hyperpoint vec; hyperpoint vec;
if(sqhypot_d(2, ct.yh) > 1e-6) vec = ct.yh; if(sqhypot_d(2, ct.yh) > 1e-6) vec = ct.yh;