From 6056fce41a7c671178f47337c81ab9c2e8661078 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 4 Feb 2023 00:28:53 +0100 Subject: [PATCH] embeddings:: better yzspin --- 3d-models.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/3d-models.cpp b/3d-models.cpp index 374a0f88..e43ecf0f 100644 --- a/3d-models.cpp +++ b/3d-models.cpp @@ -505,14 +505,14 @@ void geometry_information::make_skeletal(hpcshape& sh, ld push) { } hyperpoint yzspin(ld alpha, hyperpoint h) { - if(gproduct) return product::direct_exp(cspin(1, 2, alpha) * product::inverse_exp(h)); - else if(embedded_plane && cgi.emb->center_z()) { - h = gpushxto0(cgi.emb->tile_center()) * h; + if(embedded_plane) { + h = cgi.emb->actual_to_logical(h); h = cspin(1, 2, alpha) * h; - h = rgpushxto0(cgi.emb->tile_center()) * h; + h = cgi.emb->logical_to_actual(h); return h; } - else return cspin(1, 2, alpha) * h; + if(gproduct) return product::direct_exp(cspin(1, 2, alpha) * product::inverse_exp(h)); + return cspin(1, 2, alpha) * h; } void geometry_information::make_revolution(hpcshape& sh, int mx, ld push) {