| 347 | } |
| 348 | |
| 349 | void test_io( |
| 350 | const geode::LightRegularGrid3D& grid, const std::string& filename ) |
| 351 | { |
| 352 | geode::save_light_regular_grid( grid, filename ); |
| 353 | const auto new_grid = geode::load_light_regular_grid< 3 >( filename ); |
| 354 | |
| 355 | geode::OpenGeodeMeshException::test( new_grid.nb_grid_vertices() == 1056, |
| 356 | "Reloaded LightRegularGrid should have 1056 vertices" ); |
| 357 | test_cell_number( new_grid ); |
| 358 | test_vertex_number( new_grid ); |
| 359 | test_cell_geometry( new_grid ); |
| 360 | test_boundary_box( new_grid ); |
| 361 | } |
| 362 | |
| 363 | void test() |
| 364 | { |
no test coverage detected