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

Function test_build_aabb

tests/geometry/test-aabb.cpp:78–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77template < geode::index_t dimension >
78void test_build_aabb()
79{
80 geode::Logger::info( "TEST", "Build AABB ", dimension, "D" );
81 const geode::index_t nb_boxes{ 100 };
82 const double box_size{ 0.25 };
83
84 // Create a grid of non overlapping boxes
85 const auto box_vector =
86 create_box_vector< dimension >( nb_boxes, box_size );
87 const geode::AABBTree< dimension > aabb{ box_vector };
88
89 geode::OpenGeodeGeometryException::test(
90 aabb.nb_bboxes() == box_vector.size(),
91 "Build AABB - Wrong number of boxes in the tree" );
92}
93
94template < geode::index_t dimension >
95class BoxAABBEvalDistance

Callers

nothing calls this directly

Calls 4

infoFunction · 0.85
testFunction · 0.70
nb_bboxesMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected