| 626 | } |
| 627 | |
| 628 | void test() |
| 629 | { |
| 630 | geode::OpenGeodeMeshLibrary::initialize(); |
| 631 | auto polyhedral_solid = geode::PolyhedralSolid3D::create( |
| 632 | geode::OpenGeodePolyhedralSolid3D::impl_name_static() ); |
| 633 | polyhedral_solid->enable_edges(); |
| 634 | polyhedral_solid->enable_facets(); |
| 635 | auto builder = geode::PolyhedralSolidBuilder3D::create( *polyhedral_solid ); |
| 636 | |
| 637 | test_create_vertices( *polyhedral_solid, *builder ); |
| 638 | test_create_vertex_attribute( *polyhedral_solid ); |
| 639 | test_create_polyhedra( *polyhedral_solid, *builder ); |
| 640 | test_create_facet_attribute( *polyhedral_solid ); |
| 641 | test_create_edge_attribute( *polyhedral_solid ); |
| 642 | test_edges( *polyhedral_solid ); |
| 643 | test_facets( *polyhedral_solid ); |
| 644 | test_polyhedron_adjacencies( *polyhedral_solid, *builder ); |
| 645 | test_texture( *polyhedral_solid ); |
| 646 | |
| 647 | test_io( *polyhedral_solid, |
| 648 | absl::StrCat( "test.", polyhedral_solid->native_extension() ) ); |
| 649 | test_backward_io( absl::StrCat( |
| 650 | geode::DATA_PATH, "test_v7.", polyhedral_solid->native_extension() ) ); |
| 651 | test_backward_io( absl::StrCat( |
| 652 | geode::DATA_PATH, "test_v12.", polyhedral_solid->native_extension() ) ); |
| 653 | |
| 654 | test_permutation( *polyhedral_solid, *builder ); |
| 655 | test_delete_polyhedra( *polyhedral_solid, *builder ); |
| 656 | test_clone( *polyhedral_solid ); |
| 657 | test_set_polyhedron_vertex( *polyhedral_solid, *builder ); |
| 658 | test_delete_all( *polyhedral_solid, *builder ); |
| 659 | |
| 660 | test_barycenters(); |
| 661 | test_normals(); |
| 662 | } |
| 663 | |
| 664 | OPENGEODE_TEST( "polyhedral-solid" ) |
no test coverage detected