| 450 | |
| 451 | template < geode::index_t dimension > |
| 452 | void test_other_intersections() |
| 453 | { |
| 454 | geode::Logger::info( |
| 455 | "TEST", " Box other intersection AABB ", dimension, "D " ); |
| 456 | |
| 457 | geode::AABBTree< dimension > aabb{ create_box_vector< dimension >( |
| 458 | 5, 0.2 ) }; |
| 459 | const geode::AABBTree< dimension > other{ create_box_vector< dimension >( |
| 460 | 2, 0.4 ) }; |
| 461 | OtherAABBIntersection< dimension > action; |
| 462 | aabb.compute_other_element_bbox_intersections( other, action ); |
| 463 | |
| 464 | absl::flat_hash_map< geode::index_t, geode::index_t > answer{ { 0, 0 }, |
| 465 | { 1, 1 }, { 5, 2 }, { 6, 3 } }; |
| 466 | for( const auto& result : action.included_box_ ) |
| 467 | { |
| 468 | geode::OpenGeodeGeometryException::test( |
| 469 | answer.at( result.first ) == result.second, |
| 470 | "Box other intersection - Wrong box result" ); |
| 471 | } |
| 472 | } |
| 473 | |
| 474 | template < geode::index_t dimension > |
| 475 | void do_test() |
nothing calls this directly
no test coverage detected