From a31f1094f96b57261d866c3cea46582fea388739 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 10 Mar 2019 12:04:56 +0100 Subject: [PATCH] 3d:: binary:: fixed a crash bug caused by using the wrong relative_matrix --- binary-tiling.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/binary-tiling.cpp b/binary-tiling.cpp index d58a8ddf..b2365eb8 100644 --- a/binary-tiling.cpp +++ b/binary-tiling.cpp @@ -279,7 +279,12 @@ namespace binary { } } - transmatrix relative_matrix(heptagon *h2, heptagon *h1) { + // hrmap_standard overrides hrmap's default, override it back + virtual transmatrix relative_matrix(cell *c2, cell *c1, const hyperpoint& point_hint) override { + return relative_matrix(c2->master, c1->master); + } + + transmatrix relative_matrix(heptagon *h2, heptagon *h1) override { if(gmatrix0.count(h2->c7) && gmatrix0.count(h1->c7)) return inverse(gmatrix0[h1->c7]) * gmatrix0[h2->c7]; transmatrix gm = Id, where = Id;