#include <boost/test/included/unit_test.hpp>#include "coal/broadphase/broadphase_bruteforce.h"#include "coal/broadphase/broadphase_spatialhash.h"#include "coal/broadphase/broadphase_SaP.h"#include "coal/broadphase/broadphase_SSaP.h"#include "coal/broadphase/broadphase_interval_tree.h"#include "coal/broadphase/broadphase_dynamic_AABB_tree.h"#include "coal/broadphase/broadphase_dynamic_AABB_tree_array.h"#include "coal/broadphase/default_broadphase_callbacks.h"#include "coal/broadphase/detail/sparse_hash_table.h"#include "coal/broadphase/detail/spatial_hash.h"#include "utility.h"#include <boost/math/constants/constants.hpp>#include <iostream>#include <iomanip>
Go to the source code of this file.
| Classes | |
| struct | CollisionDataForUniquenessChecking | 
| struct | CollisionFunctionForUniquenessChecking | 
| Macros | |
| #define | BOOST_TEST_MODULE COAL_BROADPHASE_COLLISION_1 | 
| Functions | |
| BOOST_AUTO_TEST_CASE (test_broad_phase_dont_duplicate_check) | |
| BOOST_AUTO_TEST_CASE (test_core_bf_broad_phase_update_collision) | |
| check the update, return 10 contacts  More... | |
| BOOST_AUTO_TEST_CASE (test_core_bf_broad_phase_update_collision_binary) | |
| check the update, only return collision or not  More... | |
| BOOST_AUTO_TEST_CASE (test_core_bf_broad_phase_update_collision_exhaustive) | |
| check the update, exhaustive  More... | |
| BOOST_AUTO_TEST_CASE (test_core_mesh_bf_broad_phase_update_collision_mesh) | |
| check broad phase update, in mesh, return 10 contacts  More... | |
| BOOST_AUTO_TEST_CASE (test_core_mesh_bf_broad_phase_update_collision_mesh_binary) | |
| check broad phase update, in mesh, only return collision or not  More... | |
| BOOST_AUTO_TEST_CASE (test_core_mesh_bf_broad_phase_update_collision_mesh_exhaustive) | |
| check broad phase update, in mesh, exhaustive  More... | |
| void | broad_phase_duplicate_check_test (CoalScalar env_scale, std::size_t env_size, bool verbose=false) | 
| make sure if broadphase algorithms doesn't check twice for the same collision object pair  More... | |
| void | broad_phase_update_collision_test (CoalScalar env_scale, std::size_t env_size, std::size_t query_size, std::size_t num_max_contacts=1, bool exhaustive=false, bool use_mesh=false) | 
| test for broad phase update  More... | |
| #define BOOST_TEST_MODULE COAL_BROADPHASE_COLLISION_1 | 
Definition at line 38 of file broadphase_collision_1.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_broad_phase_dont_duplicate_check | ) | 
make sure if broadphase algorithms doesn't check twice for the same collision object pair
Definition at line 100 of file broadphase_collision_1.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_core_bf_broad_phase_update_collision | ) | 
check the update, return 10 contacts
Definition at line 120 of file broadphase_collision_1.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_core_bf_broad_phase_update_collision_binary | ) | 
check the update, only return collision or not
Definition at line 109 of file broadphase_collision_1.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_core_bf_broad_phase_update_collision_exhaustive | ) | 
check the update, exhaustive
Definition at line 131 of file broadphase_collision_1.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_core_mesh_bf_broad_phase_update_collision_mesh | ) | 
check broad phase update, in mesh, return 10 contacts
Definition at line 154 of file broadphase_collision_1.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_core_mesh_bf_broad_phase_update_collision_mesh_binary | ) | 
check broad phase update, in mesh, only return collision or not
Definition at line 142 of file broadphase_collision_1.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_core_mesh_bf_broad_phase_update_collision_mesh_exhaustive | ) | 
check broad phase update, in mesh, exhaustive
Definition at line 165 of file broadphase_collision_1.cpp.
| void broad_phase_duplicate_check_test | ( | CoalScalar | env_scale, | 
| std::size_t | env_size, | ||
| bool | verbose = false | ||
| ) | 
make sure if broadphase algorithms doesn't check twice for the same collision object pair
Definition at line 202 of file broadphase_collision_1.cpp.
| void broad_phase_update_collision_test | ( | CoalScalar | env_scale, | 
| std::size_t | env_size, | ||
| std::size_t | query_size, | ||
| std::size_t | num_max_contacts = 1, | ||
| bool | exhaustive = false, | ||
| bool | use_mesh = false | ||
| ) | 
test for broad phase update
Definition at line 358 of file broadphase_collision_1.cpp.