MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include "moab/Core.hpp"
#include "moab/SpatialLocator.hpp"
#include "moab/Tree.hpp"
#include "moab/HomXform.hpp"
#include "moab/ScdInterface.hpp"
#include "moab/CartVect.hpp"
#include "moab/AdaptiveKDTree.hpp"
#include "moab/BVHTree.hpp"
#include "moab/ElemEvaluator.hpp"
#include "moab/ProgOptions.hpp"
#include "moab/CpuTimer.hpp"
#include "TestUtil.hpp"
#include <cstdlib>
#include <sstream>
Go to the source code of this file.
Functions | |
void | test_kd_tree () |
void | test_bvh_tree () |
void | test_locator (SpatialLocator *sl) |
ErrorCode | create_hex_mesh (Interface &mb, Range &elems, int n, int dim) |
int | main (int argc, char **argv) |
Variables | |
int | max_depth = 30 |
int | npoints = 1000 |
int | leaf = 6 |
bool | print_tree = false |
int | ints = 10 |
Definition at line 153 of file spatial_locator_test.cpp.
References CHECK_ERR, moab::ScdInterface::construct_box(), dim, ErrorCode, moab::Core::get_entities_by_dimension(), mb, moab::Interface::query_interface(), and moab::Interface::release_interface().
Referenced by test_bvh_tree(), and test_kd_tree().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 36 of file spatial_locator_test.cpp.
References ProgOptions::addOpt(), moab::fail(), ints, leaf, max_depth, npoints, ProgOptions::parseCommandLine(), print_tree, RUN_TEST, test_bvh_tree(), and test_kd_tree().
void test_bvh_tree | ( | ) |
Definition at line 93 of file spatial_locator_test.cpp.
References CHECK_ERR, create_hex_mesh(), ErrorCode, ints, leaf, max_depth, mb, moab::BVHTree::parse_options(), moab::Tree::set_eval(), and test_locator().
Referenced by main().
void test_kd_tree | ( | ) |
Definition at line 65 of file spatial_locator_test.cpp.
References CHECK_ERR, create_hex_mesh(), ErrorCode, ints, leaf, max_depth, mb, moab::AdaptiveKDTree::parse_options(), moab::Tree::set_eval(), and test_locator().
Referenced by main().
void test_locator | ( | SpatialLocator * | sl | ) |
Definition at line 120 of file spatial_locator_test.cpp.
References moab::CartVect::array(), box(), CHECK_EQUAL, CHECK_ERR, ErrorCode, moab::SpatialLocator::get_tree(), moab::SpatialLocator::local_box(), moab::SpatialLocator::locate_points(), npoints, moab::TreeStats::output_trav_stats(), moab::Tree::print(), print_tree, and moab::Tree::tree_stats().
Referenced by test_bvh_tree(), and test_kd_tree().
int ints = 10 |
Definition at line 34 of file spatial_locator_test.cpp.
Referenced by main(), test_bvh_tree(), and test_kd_tree().
int leaf = 6 |
Definition at line 32 of file spatial_locator_test.cpp.
Referenced by main(), test_bvh_tree(), and test_kd_tree().
int max_depth = 30 |
Definition at line 30 of file spatial_locator_test.cpp.
Referenced by main(), test_bvh_tree(), and test_kd_tree().
int npoints = 1000 |
Definition at line 31 of file spatial_locator_test.cpp.
Referenced by main(), and test_locator().
bool print_tree = false |
Definition at line 33 of file spatial_locator_test.cpp.
Referenced by main(), and test_locator().