mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-26 02:14:48 +00:00
3d:: field quotient spaces for reg3
This commit is contained in:
10
hypgraph.cpp
10
hypgraph.cpp
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user