| 106 | } |
| 107 | |
| 108 | void test_io( const geode::PointSet3D& point_set, std::string_view filename ) |
| 109 | { |
| 110 | geode::save_point_set( point_set, filename ); |
| 111 | const auto reload = geode::load_point_set< 3 >( filename ); |
| 112 | geode_unused( reload ); |
| 113 | const auto point_set2 = geode::load_point_set< 3 >( |
| 114 | geode::OpenGeodePointSet3D::impl_name_static(), filename ); |
| 115 | for( const auto vertex_id : geode::Range{ point_set.nb_vertices() } ) |
| 116 | { |
| 117 | geode::OpenGeodeMeshException::test( |
| 118 | point_set.point( vertex_id ) |
| 119 | .inexact_equal( point_set2->point( vertex_id ) ), |
| 120 | "Wrong reloaded mesh point coordinates." ); |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | void test_clone( const geode::PointSet3D& point_set ) |
| 125 | { |
no test coverage detected