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

Function test_io

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

Source from the content-addressed store, hash-verified

106}
107
108void 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
124void test_clone( const geode::PointSet3D& point_set )
125{

Callers 1

testFunction · 0.70

Calls 7

save_point_setFunction · 0.85
geode_unusedFunction · 0.85
testFunction · 0.70
impl_name_staticFunction · 0.50
nb_verticesMethod · 0.45
inexact_equalMethod · 0.45
pointMethod · 0.45

Tested by

no test coverage detected