| 17 | } |
| 18 | |
| 19 | GeoMeshPtr write_and_load(const std::string& filename, GeoMeshPtr mesh) { |
| 20 | GeogramMeshIO::save_mesh(filename, mesh); |
| 21 | auto r = GeogramMeshIO::load_mesh(filename); |
| 22 | remove(filename); |
| 23 | return r; |
| 24 | } |
| 25 | |
| 26 | void remove(const std::string& filename) { |
| 27 | std::string full_name = filename; |