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

Function test_backward_io

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

Source from the content-addressed store, hash-verified

429}
430
431void 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
453void test_barycenters()
454{

Callers 1

testFunction · 0.70

Calls 6

nb_polyhedraMethod · 0.80
testFunction · 0.70
nb_verticesMethod · 0.45
nb_facetsMethod · 0.45
nb_edgesMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected