From bab78c817984b750f9e5e3f9ebef94a49c04e861 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 24 Jan 2023 14:54:19 +0100 Subject: [PATCH] fixed configure_product_cylinder --- geometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geometry.cpp b/geometry.cpp index e40ffdd5..0df44e47 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -1496,8 +1496,8 @@ EX void switch_always3() { EX void configure_product_cylinder() { rug::clifford_torus ct; hyperpoint vec; - if(sqhypot_d(2, ct.yh) < 1e-6) vec = ct.yh; - else if(sqhypot_d(2, ct.xh) < 1e-6) vec = ct.xh; + if(sqhypot_d(2, ct.yh) > 1e-6) vec = ct.yh; + else if(sqhypot_d(2, ct.xh) > 1e-6) vec = ct.xh; else vec = hyperpoint(10, 0, 0, 0); euclid_embed_scale = TAU / hypot_d(2, vec);