mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-19 23:25:13 +00:00
export_tes exports stretch_shear too
This commit is contained in:
@@ -503,6 +503,8 @@ EX bool export_tes(string fname) {
|
|||||||
for(int j=0; j<shs[i].cycle_length; j++) {
|
for(int j=0; j<shs[i].cycle_length; j++) {
|
||||||
auto& co = shs[i].connections[j];
|
auto& co = shs[i].connections[j];
|
||||||
println(f, "c(", i, ",", j, ",", co.sid, ",", co.eid, ",", co.mirror, ")");
|
println(f, "c(", i, ",", j, ",", co.sid, ",", co.eid, ",", co.mirror, ")");
|
||||||
|
if(shs[i].stretch_shear[j] != make_pair<ld,ld>(1, 0))
|
||||||
|
println(f, "stretch_shear(", format("%.15f,%.15f,", shs[i].stretch_shear[j].first, shs[i].stretch_shear[j].second), ",", i, ",", j, ")");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for(auto& af: all_found) {
|
for(auto& af: all_found) {
|
||||||
|
|||||||
Reference in New Issue
Block a user