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

Function test_create_polygons

tests/mesh/test-triangulated-surface.cpp:51–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void test_create_polygons( const geode::TriangulatedSurface3D& surface,
52 geode::TriangulatedSurfaceBuilder3D& builder )
53{
54 builder.create_triangles( 1 );
55 builder.create_triangle( { 1, 3, 2 } );
56 builder.create_polygon( { 3, 4, 2 } );
57 geode::OpenGeodeMeshException::test( surface.nb_polygons() == 3,
58 "TriangulatedSurface should have 3 triangles" );
59 builder.set_polygon_vertex( { 0, 0 }, 0 );
60 builder.set_polygon_vertex( { 0, 1 }, 1 );
61 builder.set_polygon_vertex( { 0, 2 }, 2 );
62}
63
64void test_polygon_adjacencies( const geode::TriangulatedSurface3D& surface,
65 geode::TriangulatedSurfaceBuilder3D& builder )

Callers 1

testFunction · 0.70

Calls 6

create_trianglesMethod · 0.80
create_triangleMethod · 0.80
create_polygonMethod · 0.80
nb_polygonsMethod · 0.80
testFunction · 0.70
set_polygon_vertexMethod · 0.45

Tested by

no test coverage detected