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

Function test_bounding_box

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

Source from the content-addressed store, hash-verified

71}
72
73void test_bounding_box( const geode::PointSet3D& point_set )
74{
75 geode::Point3D answer_min{ { 0.0, 0.0, -1.2 } };
76 geode::Point3D answer_max{ { 2.3, 9.4, 6.7 } };
77 geode::OpenGeodeMeshException::test(
78 point_set.bounding_box().min() == answer_min,
79 "Wrong computation of bounding box (min)" );
80 geode::OpenGeodeMeshException::test(
81 point_set.bounding_box().max() == answer_max,
82 "Wrong computation of bounding box (max)" );
83}
84
85void test_create_vertex_attribute( const geode::PointSet3D& point_set )
86{

Callers 1

testFunction · 0.70

Calls 2

testFunction · 0.70
bounding_boxMethod · 0.45

Tested by

no test coverage detected