From b4a44972dd3bb5d2f4bf40a80e1258ed554696ec Mon Sep 17 00:00:00 2001 From: ? Date: Mon, 25 Feb 2019 15:54:26 +0100 Subject: [PATCH] 4D:: do not use std sphere/euclid in calc_relative_matrix/ggmatrix --- geometry2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geometry2.cpp b/geometry2.cpp index 31298578..53d720b2 100644 --- a/geometry2.cpp +++ b/geometry2.cpp @@ -62,7 +62,7 @@ namespace gp { extern gp::local_info draw_li; } transmatrix calc_relative_matrix(cell *c2, cell *c1, const hyperpoint& point_hint) { - if(sphere_narcm) { + if(sphere_narcm && DIM == 2) { if(!gmatrix0.count(c2) || !gmatrix0.count(c1)) { printf("building gmatrix0 (size=%d)\n", isize(gmatrix0)); #if CAP_GP @@ -222,7 +222,7 @@ transmatrix &ggmatrix(cell *c) { if(t[2][2] == 0) { if(euwrap && centerover.at) t = calc_relative_matrix(c, centerover.at, C0); - else if(euclid) { + else if(euclid && DIM == 2) { if(!centerover.at) centerover = cwt; t = View * eumove(cell_to_vec(c) - cellwalker_to_vec(centerover)); }