| 123 | } |
| 124 | |
| 125 | void 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 | |
| 144 | void test_vertex_index( const geode::RegularGrid3D& grid ) |
| 145 | { |
no test coverage detected