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

Function test_bounding_box

tests/mesh/test-polyhedral-solid.cpp:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void test_bounding_box( const geode::PolyhedralSolid3D& polyhedral_solid )
62{
63 geode::Point3D answer_min{ { 0.1, 0.2, 0.3 } };
64 geode::Point3D answer_max{ { 9.3, 9.4, 6.7 } };
65 const auto bbox = polyhedral_solid.bounding_box();
66 geode::OpenGeodeMeshException::test(
67 bbox.min() == answer_min, "Wrong computation of bounding box (min)" );
68 geode::OpenGeodeMeshException::test(
69 bbox.max() == answer_max, "Wrong computation of bounding box (max)" );
70}
71
72void test_facets( const geode::PolyhedralSolid3D& polyhedral_solid )
73{

Callers

nothing calls this directly

Calls 2

testFunction · 0.70
bounding_boxMethod · 0.45

Tested by

no test coverage detected