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

Function test_cell_number

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

Source from the content-addressed store, hash-verified

40#include <geode/tests/common.hpp>
41
42void test_cell_number( const geode::RegularGrid3D& grid )
43{
44 geode::OpenGeodeMeshException::test(
45 grid.nb_polyhedra() == 750, "Wrong total number of cells" );
46 geode::OpenGeodeMeshException::test( grid.nb_cells_in_direction( 0 ) == 5,
47 "Wrong total number of cells along X" );
48 geode::OpenGeodeMeshException::test( grid.nb_cells_in_direction( 1 ) == 10,
49 "Wrong total number of cells along Y" );
50 geode::OpenGeodeMeshException::test( grid.nb_cells_in_direction( 2 ) == 15,
51 "Wrong total number of cells along Z" );
52}
53
54void test_cell_size( const geode::RegularGrid3D& grid )
55{

Callers 1

test_gridFunction · 0.70

Calls 3

nb_polyhedraMethod · 0.80
testFunction · 0.70
nb_cells_in_directionMethod · 0.45

Tested by

no test coverage detected