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

Function test

tests/mesh/test-regular-grid.cpp:531–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

529}
530
531void test()
532{
533 geode::OpenGeodeMeshLibrary::initialize();
534
535 auto grid = geode::RegularGrid3D::create();
536 auto builder = geode::RegularGridBuilder3D::create( *grid );
537 builder->initialize_grid( geode::Point3D{ { 1.5, 0, 1 } }, { 5, 10, 15 },
538 { geode::Vector3D{ { 0, 0, 1 } }, geode::Vector3D{ { -2, 0, 0 } },
539 geode::Vector3D{ { 0, -3, 0 } } } );
540 test_grid( *grid );
541
542 auto grid_v12 = geode::load_regular_grid< 3 >(
543 absl::StrCat( geode::DATA_PATH, "test_v12.og_rgd3d" ) );
544 auto builder_v12 = geode::RegularGridBuilder3D::create( *grid_v12 );
545 builder_v12->update_origin_and_directions( geode::Point3D{ { 1.5, 0, 1 } },
546 { geode::Vector3D{ { 0, 0, 1 } }, geode::Vector3D{ { -2, 0, 0 } },
547 geode::Vector3D{ { 0, -3, 0 } } } );
548 test_grid( *grid_v12 );
549
550 test_adjacencies2D();
551}
552
553OPENGEODE_TEST( "regular-grid" )

Callers 14

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_bounding_boxFunction · 0.70
test_closest_vertexFunction · 0.70
test_cloneFunction · 0.70

Calls 5

initializeFunction · 0.85
test_gridFunction · 0.85
test_adjacencies2DFunction · 0.85
initialize_gridMethod · 0.45

Tested by

no test coverage detected