From 9b3324b7ebf883df808d3f6d20a516efa869a282 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 9 Dec 2022 02:19:56 +0100 Subject: [PATCH] fixed rotational models on sphere --- 3d-models.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/3d-models.cpp b/3d-models.cpp index fc702b70..b96130b6 100644 --- a/3d-models.cpp +++ b/3d-models.cpp @@ -492,6 +492,12 @@ 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 && msphere && !sphere) { + h = gpushxto0(tile_center()) * h; + h = cspin(1, 2, alpha) * h; + h = rgpushxto0(tile_center()) * h; + return h; + } else return cspin(1, 2, alpha) * h; }