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

Function test_create_vertices

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

Source from the content-addressed store, hash-verified

37#include <geode/tests/common.hpp>
38
39void test_create_vertices( const geode::TriangulatedSurface3D& surface,
40 geode::TriangulatedSurfaceBuilder3D& builder )
41{
42 builder.create_point( geode::Point3D{ { 0.1, 0.2, 0.3 } } );
43 builder.create_point( geode::Point3D{ { 2.1, 9.4, 6.7 } } );
44 builder.create_point( geode::Point3D{ { 7.5, 5.2, 6.3 } } );
45 builder.create_point( geode::Point3D{ { 8.1, 1.4, 4.7 } } );
46 builder.create_point( geode::Point3D{ { 4.7, 2.1, 1.3 } } );
47 geode::OpenGeodeMeshException::test( surface.nb_vertices() == 5,
48 "TriangulatedSurface should have 5 vertices" );
49}
50
51void test_create_polygons( const geode::TriangulatedSurface3D& surface,
52 geode::TriangulatedSurfaceBuilder3D& builder )

Callers 1

testFunction · 0.70

Calls 3

testFunction · 0.70
create_pointMethod · 0.45
nb_verticesMethod · 0.45

Tested by

no test coverage detected