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

Function test

tests/mesh/test-polyhedral-solid.cpp:628–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626}
627
628void 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
664OPENGEODE_TEST( "polyhedral-solid" )

Callers 15

test_create_verticesFunction · 0.70
test_bounding_boxFunction · 0.70
test_facetsFunction · 0.70
test_edgesFunction · 0.70
test_create_polyhedraFunction · 0.70
test_permutationFunction · 0.70
test_delete_polyhedraFunction · 0.70
test_ioFunction · 0.70
test_backward_ioFunction · 0.70
test_barycentersFunction · 0.70

Calls 15

initializeFunction · 0.85
test_create_verticesFunction · 0.70
test_create_polyhedraFunction · 0.70
test_edgesFunction · 0.70
test_facetsFunction · 0.70
test_textureFunction · 0.70
test_ioFunction · 0.70
test_backward_ioFunction · 0.70

Tested by

no test coverage detected