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

Function test_bounding_box

tests/mesh/test-regular-grid.cpp:307–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307void test_bounding_box( const geode::RegularGrid3D& grid )
308{
309 const auto bbox = grid.bounding_box();
310 geode::Point3D min{ { -18.5, -45, 1 } };
311 geode::Point3D max{ { 1.5, 0, 6 } };
312 geode::OpenGeodeMeshException::test( bbox.min() == min,
313 "Wrong bounding box min: ", bbox.min().string(), " instead of ",
314 min.string() );
315 geode::OpenGeodeMeshException::test( bbox.max() == max,
316 "Wrong bounding box max: ", bbox.max().string(), " instead of ",
317 max.string() );
318}
319
320void test_closest_vertex( const geode::RegularGrid3D& grid )
321{

Callers 1

test_gridFunction · 0.70

Calls 3

testFunction · 0.70
bounding_boxMethod · 0.45
stringMethod · 0.45

Tested by

no test coverage detected