notknot:: added debug to show pathbacks

This commit is contained in:
Zeno Rogue 2021-03-25 11:17:12 +01:00
parent db7901791f
commit b6505de623
1 changed files with 12 additions and 0 deletions

View File

@ -743,6 +743,18 @@ struct hrmap_notknot : hrmap {
}
add_to_unify(us, u);
}
if(loop_any < 2 && u->where == all[0]->where) {
vector<int> pathback;
auto us = all[0];
auto uc = u;
while(uc->parentdir != -1) {
pathback.push_back(uc->parentdir);
us = gen_adj(us, uc->parentdir);
uc = uc->ptr[(int) uc->parentdir];
}
println(hlog, "pathback = ", pathback);
}
}
map<heptagon*, int> indices;