replaced product drawing with the general routine

This commit is contained in:
Zeno Rogue committed 2019-12-06 12:13:09 +01:00
1 parent ac9d18adfb
commit 63c4886722
3 files changed
+37 -23

No files matched your search

+14
View File
@@ -1895,11 +1895,25 @@ EX namespace dq {
EX set<int> visited_by_matrix;
EX void enqueue_by_matrix(heptagon *h, const transmatrix& T) {
if(!h) return;
if(sl2 && T[3][3] < 0) { enqueue_by_matrix(h, centralsym * T); return; }
int b = bucketer(tC0(T));
if(visited_by_matrix.count(b)) { return; }
visited_by_matrix.insert(b);
drawqueue.emplace(h, T, band_shift);
}
EX queue<tuple<cell*, transmatrix, ld>> drawqueue_c;
EX void enqueue_by_matrix_c(cell *c, const transmatrix& T) {
if(!c) return;
if(sl2 && T[3][3] < 0) { enqueue_by_matrix_c(c, centralsym * T); return; }
int b = bucketer(tC0(T));
if(visited_by_matrix.count(b)) { return; }
visited_by_matrix.insert(b);
drawqueue_c.emplace(c, T, band_shift);
}
EX }
EX bool do_draw(cell *c) {