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

Function test

tests/mesh/test-polygonal-surface.cpp:659–698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657}
658
659void test()
660{
661 geode::OpenGeodeMeshLibrary::initialize();
662 auto polygonal_surface = geode::PolygonalSurface3D::create(
663 geode::OpenGeodePolygonalSurface3D::impl_name_static() );
664 polygonal_surface->enable_edges();
665 auto builder =
666 geode::PolygonalSurfaceBuilder3D::create( *polygonal_surface );
667
668 test_create_vertices( *polygonal_surface, *builder );
669 test_bounding_box( *polygonal_surface );
670 test_create_vertex_attribute( *polygonal_surface );
671 test_create_polygons( *polygonal_surface, *builder );
672 test_create_edge_attribute( *polygonal_surface );
673 test_polygon_adjacencies( *polygonal_surface, *builder );
674 test_polygon_edges_on_borders( *polygonal_surface );
675 test_previous_next_on_border( *polygonal_surface );
676 test_polygon_edge_requests( *polygonal_surface );
677 test_polygon_barycenter( *polygonal_surface );
678 test_polygon_area();
679 test_polygon_normal();
680 test_polygon_vertex_normal();
681 test_texture( *polygonal_surface );
682
683 test_io( *polygonal_surface,
684 absl::StrCat( "test.", polygonal_surface->native_extension() ) );
685 test_backward_io( absl::StrCat(
686 geode::DATA_PATH, "test_v7.", polygonal_surface->native_extension() ) );
687 test_backward_io( absl::StrCat( geode::DATA_PATH, "test_v12.",
688 polygonal_surface->native_extension() ) );
689
690 test_permutation( *polygonal_surface, *builder );
691 test_replace_vertex( *polygonal_surface, *builder );
692 test_delete_polygon( *polygonal_surface, *builder );
693 test_clone( *polygonal_surface );
694 test_set_polygon_vertex( *polygonal_surface, *builder );
695 test_delete_all( *polygonal_surface, *builder );
696
697 test_non_manifold_surface();
698}
699
700OPENGEODE_TEST( "polygonal-surface" )

Callers 15

test_create_verticesFunction · 0.70
test_bounding_boxFunction · 0.70
test_permutationFunction · 0.70
test_create_polygonsFunction · 0.70
test_polygon_adjacenciesFunction · 0.70
test_delete_polygonFunction · 0.70
test_polygon_barycenterFunction · 0.70
test_polygon_areaFunction · 0.70

Calls 15

initializeFunction · 0.85
test_replace_vertexFunction · 0.85
test_create_verticesFunction · 0.70
test_bounding_boxFunction · 0.70
test_create_polygonsFunction · 0.70
test_polygon_adjacenciesFunction · 0.70

Tested by

no test coverage detected