| 76 | |
| 77 | template < geode::index_t dimension > |
| 78 | void 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 | |
| 94 | template < geode::index_t dimension > |
| 95 | class BoxAABBEvalDistance |