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

Function test_create_vertices

tests/mesh/test-edged-curve.cpp:38–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36#include <geode/tests/common.hpp>
37
38void test_create_vertices( const geode::EdgedCurve3D& edged_curve,
39 geode::EdgedCurveBuilder3D& builder )
40{
41 builder.create_point( geode::Point3D{ { 0.1, 0.2, 0.3 } } );
42 builder.create_point( geode::Point3D{ { 2.1, 9.4, 6.7 } } );
43 geode::OpenGeodeMeshException::test(
44 edged_curve.nb_vertices() == 2, "EdgedCurve should have 2 vertices" );
45 builder.create_vertices( 2 );
46 builder.set_point( 2, geode::Point3D{ { 7.5, 5.2, 6.3 } } );
47 builder.set_point( 3, geode::Point3D{ { 8.7, 1.4, 4.7 } } );
48 geode::OpenGeodeMeshException::test(
49 edged_curve.nb_vertices() == 4, "EdgedCurve should have 4 vertices" );
50}
51
52void test_permutation( const geode::EdgedCurve3D& edged_curve,
53 geode::EdgedCurveBuilder3D& builder )

Callers 1

testFunction · 0.70

Calls 5

create_verticesMethod · 0.80
testFunction · 0.70
create_pointMethod · 0.45
nb_verticesMethod · 0.45
set_pointMethod · 0.45

Tested by

no test coverage detected