diff --git a/arbitrile.cpp b/arbitrile.cpp index d1e0ad97..a47fa2ce 100644 --- a/arbitrile.cpp +++ b/arbitrile.cpp @@ -408,15 +408,15 @@ EX void load_tile(exp_parser& ep, arbi_tiling& c, bool unit) { EX bool do_unmirror = true; /** \brief for tessellations which contain mirror rules, remove them by taking the orientable double cover */ -EX void unmirror() { - auto& mirror_rules = arb::current.mirror_rules; +EX void unmirror(arbi_tiling& c) { + auto& mirror_rules = c.mirror_rules; mirror_rules = 0; - for(auto& s: arb::current.shapes) + for(auto& s: c.shapes) for(auto& t: s.connections) if(t.mirror) mirror_rules++; if(!mirror_rules) return; - auto& sh = current.shapes; + auto& sh = c.shapes; int s = isize(sh); for(int i=0; i= isize(treestates)) throw hr_parse_exception("undefined treestate as root"); for(auto& ts: treestates) for(auto& r: ts.rules) { @@ -2431,7 +2431,7 @@ EX void verify_parsed_treestates() { if(r > isize(treestates)) throw hr_parse_exception("undefined treestate"); } - for(auto& sh: arb::current.shapes) sh.cycle_length = sh.size(); + for(auto& sh: c.shapes) sh.cycle_length = sh.size(); find_possible_parents(); }