| 93 | } |
| 94 | |
| 95 | void 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 | |
| 108 | void test_io( const geode::PointSet3D& point_set, std::string_view filename ) |
| 109 | { |
no test coverage detected