MCPcopy Create free account
hub / github.com/Geode-solutions/OpenGeode / test_io

Function test_io

tests/mesh/test-light-regular-grid.cpp:349–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349void 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
363void test()
364{

Callers 1

testFunction · 0.70

Calls 7

save_light_regular_gridFunction · 0.85
nb_grid_verticesMethod · 0.80
testFunction · 0.70
test_cell_numberFunction · 0.70
test_vertex_numberFunction · 0.70
test_cell_geometryFunction · 0.70
test_boundary_boxFunction · 0.70

Tested by

no test coverage detected