| 361 | } |
| 362 | |
| 363 | void test() |
| 364 | { |
| 365 | geode::OpenGeodeMeshLibrary::initialize(); |
| 366 | |
| 367 | const geode::LightRegularGrid3D grid{ geode::Point3D{ { 1.5, 0, 1 } }, |
| 368 | { 5, 10, 15 }, { 1, 2, 3 } }; |
| 369 | test_cell_number( grid ); |
| 370 | test_cell_index( grid ); |
| 371 | test_vertex_number( grid ); |
| 372 | test_vertex_index( grid ); |
| 373 | test_vertex_on_border( grid ); |
| 374 | test_cell_geometry( grid ); |
| 375 | test_cell_query( grid ); |
| 376 | test_boundary_box( grid ); |
| 377 | test_closest_vertex( grid ); |
| 378 | test_attribute( grid ); |
| 379 | test_io( grid, absl::StrCat( "test.", grid.native_extension() ) ); |
| 380 | } |
| 381 | |
| 382 | OPENGEODE_TEST( "light-regular-grid" ) |
no test coverage detected