3d:: field quotient spaces for reg3

This commit is contained in:
Zeno Rogue committed 2019-09-12 22:38:46 +02:00
1 parent 791851f8d5
commit d369decc94
7 files changed
+264 -5

No files matched your search

+9 -1
View File
@@ -1528,15 +1528,23 @@ void fix_the_band(transmatrix& T) {
}
namespace dq {
set<heptagon*> visited;
queue<tuple<heptagon*, transmatrix, ld>> drawqueue;
set<heptagon*> visited;
void enqueue(heptagon *h, const transmatrix& T) {
if(!h || visited.count(h)) { return; }
visited.insert(h);
drawqueue.emplace(h, T, band_shift);
}
set<int> visited_by_matrix;
void enqueue_by_matrix(heptagon *h, const transmatrix& T) {
if(!h) return;
int b = reg3::bucketer(tC0(T));
if(visited_by_matrix.count(b)) { return; }
visited_by_matrix.insert(b);
drawqueue.emplace(h, T, band_shift);
}
}
bool do_draw(cell *c) {