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

Function test_delete_vertex

tests/mesh/test-point-set.cpp:95–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void test_delete_vertex(
96 const geode::PointSet3D& point_set, geode::PointSetBuilder3D& builder )
97{
98 std::vector< bool > to_delete( point_set.nb_vertices(), false );
99 to_delete.front() = true;
100 builder.delete_vertices( to_delete );
101 geode::OpenGeodeMeshException::test(
102 point_set.nb_vertices() == 3, "PointSet should have 3 vertices" );
103 geode::Point3D answer{ { 2.1, 9.4, 6.7 } };
104 geode::OpenGeodeMeshException::test( point_set.point( 2 ) == answer,
105 "PointSet vertex coordinates are not correct" );
106}
107
108void test_io( const geode::PointSet3D& point_set, std::string_view filename )
109{

Callers 1

testFunction · 0.70

Calls 4

delete_verticesMethod · 0.80
testFunction · 0.70
nb_verticesMethod · 0.45
pointMethod · 0.45

Tested by

no test coverage detected