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

Function test_vertex_number

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

Source from the content-addressed store, hash-verified

123}
124
125void test_vertex_number( const geode::RegularGrid3D& grid )
126{
127 geode::OpenGeodeMeshException::test(
128 grid.nb_vertices() == 1056, "Wrong total number of vertices" );
129 geode::OpenGeodeMeshException::test(
130 grid.nb_vertices_in_direction( 0 ) == 6,
131 "Wrong total number of vertices along X" );
132 geode::OpenGeodeMeshException::test(
133 grid.nb_vertices_in_direction( 1 ) == 11,
134 "Wrong total number of vertices along Y" );
135 geode::OpenGeodeMeshException::test(
136 grid.nb_vertices_in_direction( 2 ) == 16,
137 "Wrong total number of vertices along Z" );
138 geode::OpenGeodeMeshException::test(
139 grid.nb_cell_vertices() == 8, "Wrong number of vertices in cells" );
140 geode::OpenGeodeMeshException::test( grid.nb_vertices_on_borders() == 552,
141 "Wrong number of vertices on borders" );
142}
143
144void test_vertex_index( const geode::RegularGrid3D& grid )
145{

Callers 1

test_gridFunction · 0.70

Calls 5

nb_cell_verticesMethod · 0.80
testFunction · 0.70
nb_verticesMethod · 0.45

Tested by

no test coverage detected