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

Function test

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

Source from the content-addressed store, hash-verified

361}
362
363void test()
364{
365 geode::OpenGeodeMeshLibrary::initialize();
366
367 const geode::LightRegularGrid3D grid{ geode::Point3D{ { 1.5, 0, 1 } },
368 { 5, 10, 15 }, { 1, 2, 3 } };
369 test_cell_number( grid );
370 test_cell_index( grid );
371 test_vertex_number( grid );
372 test_vertex_index( grid );
373 test_vertex_on_border( grid );
374 test_cell_geometry( grid );
375 test_cell_query( grid );
376 test_boundary_box( grid );
377 test_closest_vertex( grid );
378 test_attribute( grid );
379 test_io( grid, absl::StrCat( "test.", grid.native_extension() ) );
380}
381
382OPENGEODE_TEST( "light-regular-grid" )

Callers 13

test_cell_numberFunction · 0.70
test_cell_sizeFunction · 0.70
test_cell_indexFunction · 0.70
test_cell_on_borderFunction · 0.70
test_vertex_numberFunction · 0.70
test_vertex_indexFunction · 0.70
test_vertex_on_borderFunction · 0.70
test_cell_geometryFunction · 0.70
test_cell_queryFunction · 0.70
test_boundary_boxFunction · 0.70
test_closest_vertexFunction · 0.70
test_attributeFunction · 0.70

Calls 13

initializeFunction · 0.85
test_attributeFunction · 0.85
test_cell_numberFunction · 0.70
test_cell_indexFunction · 0.70
test_vertex_numberFunction · 0.70
test_vertex_indexFunction · 0.70
test_vertex_on_borderFunction · 0.70
test_cell_geometryFunction · 0.70
test_cell_queryFunction · 0.70
test_boundary_boxFunction · 0.70
test_closest_vertexFunction · 0.70
test_ioFunction · 0.70

Tested by

no test coverage detected