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

Function test_adjacencies2D

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

Source from the content-addressed store, hash-verified

456}
457
458void test_adjacencies2D()
459{
460 auto grid = geode::RegularGrid2D::create();
461 auto builder = geode::RegularGridBuilder2D::create( *grid );
462 builder->initialize_grid( geode::Point2D{ { 0., 0. } }, { 10, 10 }, 1 );
463 for( const auto p : geode::Range{ grid->nb_polygons() } )
464 {
465 for( const auto ee : geode::LRange{ grid->nb_polygon_edges( p ) } )
466 {
467 const auto edge = grid->polygon_adjacent_edge( { p, ee } );
468 geode_unused( edge );
469 }
470 }
471}
472
473void test_around_vertex( const geode::RegularGrid3D& grid )
474{

Callers 1

testFunction · 0.85

Calls 5

geode_unusedFunction · 0.85
nb_polygonsMethod · 0.80
nb_polygon_edgesMethod · 0.80
polygon_adjacent_edgeMethod · 0.80
initialize_gridMethod · 0.45

Tested by

no test coverage detected