| 429 | } |
| 430 | |
| 431 | void test_backward_io( const std::string& filename ) |
| 432 | { |
| 433 | const auto new_polyhedral_solid = |
| 434 | geode::load_polyhedral_solid< 3 >( filename ); |
| 435 | |
| 436 | geode::OpenGeodeMeshException::test( |
| 437 | new_polyhedral_solid->nb_vertices() == 8, |
| 438 | "Backward PolyhedralSolid should have 8 vertices" ); |
| 439 | geode::OpenGeodeMeshException::test( |
| 440 | new_polyhedral_solid->facets().nb_facets() == 11, |
| 441 | "Backward PolyhedralSolid should have 11 facets" ); |
| 442 | geode::OpenGeodeMeshException::test( |
| 443 | new_polyhedral_solid->edges().nb_edges() == 15, |
| 444 | "Backward PolyhedralSolid should have 15 edges" ); |
| 445 | geode::OpenGeodeMeshException::test( |
| 446 | new_polyhedral_solid->nb_polyhedra() == 3, |
| 447 | "Backward PolyhedralSolid should have 3 polyhedra" ); |
| 448 | geode::OpenGeodeMeshException::test( |
| 449 | new_polyhedral_solid->polyhedra_around_vertex( 4 ).size() == 3, |
| 450 | "Backward PolyhedralSolid has wrong polyhedra around vertex" ); |
| 451 | } |
| 452 | |
| 453 | void test_barycenters() |
| 454 | { |
no test coverage detected