mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
rulegen3:: fixed for ultra
This commit is contained in:
parent
81248f0558
commit
8fdbe7714a
@ -79,10 +79,12 @@ EX vector<pair<int, int>>& check_all_edges(twalker cw, analyzer_state* a, int id
|
|||||||
auto& sh0 = currentmap->get_cellshape(tcell_to_cell[cw.at]);
|
auto& sh0 = currentmap->get_cellshape(tcell_to_cell[cw.at]);
|
||||||
auto& sh1 = currentmap->get_cellshape(tcell_to_cell[tw.at]);
|
auto& sh1 = currentmap->get_cellshape(tcell_to_cell[tw.at]);
|
||||||
int common = 0;
|
int common = 0;
|
||||||
|
vector<hyperpoint> kleinized;
|
||||||
vector<hyperpoint> rotated;
|
vector<hyperpoint> rotated;
|
||||||
for(auto w: sh1.vertices_only_local) rotated.push_back(T*w);
|
for(auto v: sh0.vertices_only) kleinized.push_back(kleinize(sh0.from_cellcenter * v));
|
||||||
|
for(auto w: sh1.vertices_only) rotated.push_back(kleinize(T*sh1.from_cellcenter * w));
|
||||||
|
|
||||||
for(auto v: sh0.vertices_only_local)
|
for(auto v: kleinized)
|
||||||
for(auto w: rotated)
|
for(auto w: rotated)
|
||||||
if(sqhypot_d(MDIM, v-w) < 1e-6)
|
if(sqhypot_d(MDIM, v-w) < 1e-6)
|
||||||
common++;
|
common++;
|
||||||
|
Loading…
Reference in New Issue
Block a user