diff --git a/arbiquotient.cpp b/arbiquotient.cpp index cf3062de..da4b3707 100644 --- a/arbiquotient.cpp +++ b/arbiquotient.cpp @@ -487,7 +487,7 @@ EX bool export_tes(string fname) { for(auto v: af.connections) { if(ct++) print(f, ","); print(f, v &~ quotientspace::symmask); - if(v & quotientspace::symmask) print(f, "^"); + if(v & quotientspace::symmask) print(f, "$"); } println(f, ")"); } diff --git a/arbitrile.cpp b/arbitrile.cpp index 28a1b338..795b3397 100644 --- a/arbitrile.cpp +++ b/arbitrile.cpp @@ -1252,7 +1252,7 @@ EX void load(const string& fname, bool load_as_slided IS(false), bool keep_slide auto& con = c.quotients.back().connections; con.push_back(ep.iparse(0)); while(true) { - if(ep.eat("^")) con.back() ^= quotientspace::symmask; + if(ep.eat("$")) con.back() ^= quotientspace::symmask; else if(ep.eat(",")) con.push_back(ep.iparse(0)); else if(ep.eat(")")) break; else throw hr_parse_exception("expecing ), ^ or comma, " + ep.where()); diff --git a/tessellations/sample/44.tes b/tessellations/sample/44.tes index 55036883..defa8fd2 100644 --- a/tessellations/sample/44.tes +++ b/tessellations/sample/44.tes @@ -9,10 +9,10 @@ repeat(0, 4) #/ four self-connected edges quotient(0,1,2,3) #/ four mirrors -quotient(0^,1^,2^,3^) +quotient(0$,1$,2$,3$) #/ tiny torus quotient(2,3,0,1) #/ whirlwind -quotient(1,0,2^,3^) +quotient(1,0,2$,3$) #/ three squares -quotient(0,4,8,10^,1,11^,9,7,2,6,3^,5^) +quotient(0,4,8,10$,1,11$,9,7,2,6,3$,5$) diff --git a/tessellations/sample/README.md b/tessellations/sample/README.md index 15c425a8..3e73df0e 100644 --- a/tessellations/sample/README.md +++ b/tessellations/sample/README.md @@ -128,7 +128,7 @@ The exported file will include a copy of the definition of shapes, although it m You can see the files `44.tes` and `73.tes` as examples of the format. The format consists of a line starting with `#/ description`, and then list all the connections of the first tile in the orbifold, then all the connections of the second tile, and so on. Connections are indexed from 0, and every connection is simply the index of another edge it connects to. -If a connection is mirrored, the symbol `^` appears after the index. The first tile is always of the first type listed in the file, and the other tiles are always listed in the order +If a connection is mirrored, the symbol `$` appears after the index. The first tile is always of the first type listed in the file, and the other tiles are always listed in the order of appearance -- thus, for example, the second tile will be always the first connection of the first tile that does not connect to itself. This way, there is no need to list the types of tiles.