diff --git a/devmods/rulegen-tests.cpp b/devmods/rulegen-tests.cpp index f52c09d9..ef6d5256 100644 --- a/devmods/rulegen-tests.cpp +++ b/devmods/rulegen-tests.cpp @@ -1568,113 +1568,6 @@ void animate_to(int i) { println(hlog, "steps = ", steps); } -void genhoneycomb(string fname) { - if(WDIM != 3) throw hr_exception("genhoneycomb not in honeycomb"); - - int qc = isize(t_origin); - - vector data; - string side_data; - - map> rev_roadsign_id; - for(auto& rs: roadsign_id) rev_roadsign_id[rs.second] = rs.first; - - int N = isize(treestates); - using classdata = pair, int>; - vector nclassify(N); - for(int i=0; i= 0) print(hlog, " ", nclassify[r].first[0]); - else print(hlog, " S", r); - } - println(hlog); - } - println(hlog); - - for(int i=0; i= 0) { - data.push_back(nclassify[r].first[0]); - } - else { - data.push_back(-1); - auto& str = rev_roadsign_id[r]; - bool next = true; - for(auto ch: str) { - if(next) side_data += ('a' + ch); - next = !next; - } - side_data += ","; - } - } - } - - shstream ss; - - auto& fp = currfp; - hwrite_fpattern(ss, fp); - - vector root(qc, 0); - for(int i=0; i data; + string side_data; + + map> rev_roadsign_id; + for(auto& rs: roadsign_id) rev_roadsign_id[rs.second] = rs.first; + + int N = isize(treestates); + using classdata = pair, int>; + vector nclassify(N); + for(int i=0; i= 0) print(hlog, " ", nclassify[r].first[0]); + else print(hlog, " S", r); + } + println(hlog); + } + println(hlog); + + for(int i=0; i= 0) { + data.push_back(nclassify[r].first[0]); + } + else { + data.push_back(-1); + auto& str = rev_roadsign_id[r]; + bool next = true; + for(auto ch: str) { + if(next) side_data += ('a' + ch); + next = !next; + } + side_data += ","; + } + } + } + + shstream ss; + + auto& fp = currfp; + hwrite_fpattern(ss, fp); + + vector root(qc, 0); + for(int i=0; i