1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-13 04:13:03 +00:00

export_tes exports stretch_shear too

This commit is contained in:
Zeno Rogue
2025-10-09 09:41:28 +02:00
parent 5f725332fe
commit f29ba4f766

View File

@@ -503,6 +503,8 @@ EX bool export_tes(string fname) {
for(int j=0; j<shs[i].cycle_length; j++) {
auto& co = shs[i].connections[j];
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) {