From 944f5e30afa82cffdbd7b6258a189a6671a4b007 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 14 Sep 2022 18:01:59 +0200 Subject: [PATCH] patDual now does not display edges which are displayed by patTriTree, patTree or patTriRings --- pattern2.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pattern2.cpp b/pattern2.cpp index d9fc6831..78effeb1 100644 --- a/pattern2.cpp +++ b/pattern2.cpp @@ -2639,6 +2639,15 @@ EX namespace linepatterns { linepattern patDual("dual grid", 0xFFFFFF00, always_available, ALLCELLS( forCellIdEx(c2, i, c) if(way(c,i)) { + if((patTriTree.color & 0xFF) || (PURE && (patTree.color & 0xFF))) { + cell *parent = ts::right_parent(c, curr_dist); + if(c2 == parent) continue; + cell *parent2 = ts::right_parent(c2, curr_dist); + if(c == parent2) continue; + } + if((patTriRings.color & 0xFF)) { + if(curr_dist(c2) == curr_dist(c)) continue; + } gridlinef(V, C0, V * currentmap->adj(c, i), C0, col, 2 + vid.linequality); } )