From 29d14271547d9b84b892f7bded4e8f2cd0b4fce4 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 27 Oct 2019 00:45:34 +0200 Subject: [PATCH] fixed confusion in 3D elliptic spaces --- reg3.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reg3.cpp b/reg3.cpp index 074aec1e..5bd50129 100644 --- a/reg3.cpp +++ b/reg3.cpp @@ -887,7 +887,9 @@ EX namespace reg3 { dynamicval cm(currentmap, binary_map); T = binary_map->relative_matrix(p2.first, p1.first); } - return inverse(p1.second) * T * p2.second; + T = inverse(p1.second) * T * p2.second; + if(elliptic && T[LDIM][LDIM] < 0) T = centralsym * T; + return T; } vector get_vertices(cell* c) override {