MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include <iostream>
#include "moab/Interface.hpp"
#include "TestUtil.hpp"
#include "Internals.hpp"
#include "moab/Core.hpp"
#include "moab/GeomTopoTool.hpp"
#include "moab/GeomQueryTool.hpp"
Go to the source code of this file.
Macros | |
#define | IS_BUILDING_MB |
#define | CHKERR(A) |
Functions | |
void | gqt_load_file () |
void | gqt_load_file_dagmc_build_obb () |
void | gqt_load_file_dagmc_via_moab_build_obb () |
void | gqt_load_file_dagmc_internal_build_obb () |
void | gqt_test_obb_retreval () |
void | gqt_create_impl_compl () |
void | gqt_build_obb () |
void | gqt_num_vols () |
void | gqt_point_in () |
void | gqt_test_obb_retreval_rayfire () |
void | gqt_rayfire () |
void | gqt_closest_to () |
void | gqt_test_boundary () |
void | gqt_point_in_box_1 () |
void | gqt_point_in_box_2 () |
void | gqt_point_in_box_3 () |
void | gqt_point_in_box_4 () |
void | gqt_point_in_box_5 () |
void | cleanup () |
int | main (int, char **) |
Variables | |
GeomTopoTool * | GTT |
GeomQueryTool * | GQT |
Interface * | MBI |
const std::string | input_file = TestDir + "unittest/test_geom.h5m" |
#define CHKERR | ( | A | ) |
Definition at line 19 of file gqt_simple_test.cpp.
#define IS_BUILDING_MB |
Definition at line 4 of file gqt_simple_test.cpp.
void cleanup | ( | ) |
void gqt_build_obb | ( | ) |
Definition at line 126 of file gqt_simple_test.cpp.
References CHECK_ERR, moab::GeomTopoTool::construct_obb_trees(), ErrorCode, GQT, and moab::GeomQueryTool::gttool().
Referenced by main().
void gqt_closest_to | ( | ) |
Definition at line 242 of file gqt_simple_test.cpp.
References CHECK_ERR, CHECK_REAL_EQUAL, moab::GeomQueryTool::closest_to_location(), moab::GeomTopoTool::entity_by_id(), eps, ErrorCode, GQT, and moab::GeomQueryTool::gttool().
Referenced by main().
void gqt_create_impl_compl | ( | ) |
Definition at line 121 of file gqt_simple_test.cpp.
References CHECK_ERR, ErrorCode, GQT, moab::GeomQueryTool::gttool(), and moab::GeomTopoTool::setup_implicit_complement().
Referenced by main().
void gqt_load_file | ( | ) |
Definition at line 31 of file gqt_simple_test.cpp.
References CHECK_ERR, ErrorCode, GQT, GTT, input_file, moab::Interface::load_file(), and MBI.
Referenced by main().
void gqt_load_file_dagmc_build_obb | ( | ) |
Definition at line 40 of file gqt_simple_test.cpp.
References CHECK_ERR, ErrorCode, GQT, GTT, moab::GeomQueryTool::initialize(), input_file, moab::Interface::load_file(), and MBI.
Referenced by main().
void gqt_load_file_dagmc_internal_build_obb | ( | ) |
Definition at line 72 of file gqt_simple_test.cpp.
References CHECK_ERR, moab::GeomTopoTool::construct_obb_trees(), ErrorCode, GQT, GTT, moab::GeomQueryTool::gttool(), input_file, moab::Interface::load_file(), MBI, and moab::GeomTopoTool::setup_implicit_complement().
Referenced by main().
void gqt_load_file_dagmc_via_moab_build_obb | ( | ) |
Definition at line 55 of file gqt_simple_test.cpp.
References CHECK_ERR, moab::GeomTopoTool::construct_obb_trees(), ErrorCode, GQT, GTT, moab::GeomQueryTool::gttool(), input_file, moab::Interface::load_file(), MBI, and moab::GeomTopoTool::setup_implicit_complement().
Referenced by main().
void gqt_num_vols | ( | ) |
Definition at line 131 of file gqt_simple_test.cpp.
References CHECK_EQUAL, GQT, moab::GeomQueryTool::gttool(), and moab::GeomTopoTool::num_ents_of_dim().
Referenced by main().
void gqt_point_in | ( | ) |
Definition at line 138 of file gqt_simple_test.cpp.
References CHECK_EQUAL, CHECK_ERR, moab::GeomTopoTool::entity_by_id(), ErrorCode, GQT, GTT, moab::GeomQueryTool::gttool(), moab::GeomQueryTool::initialize(), input_file, moab::Interface::load_file(), MBI, and moab::GeomQueryTool::point_in_volume().
Referenced by main().
void gqt_point_in_box_1 | ( | ) |
Definition at line 283 of file gqt_simple_test.cpp.
References CHECK_EQUAL, moab::GeomTopoTool::entity_by_id(), ErrorCode, GQT, moab::GeomQueryTool::gttool(), MB_SUCCESS, origin, and moab::GeomQueryTool::point_in_box().
void gqt_point_in_box_2 | ( | ) |
Definition at line 294 of file gqt_simple_test.cpp.
References CHECK_EQUAL, moab::GeomTopoTool::entity_by_id(), ErrorCode, GQT, moab::GeomQueryTool::gttool(), MB_SUCCESS, origin, and moab::GeomQueryTool::point_in_box().
void gqt_point_in_box_3 | ( | ) |
Definition at line 305 of file gqt_simple_test.cpp.
References CHECK_EQUAL, moab::GeomTopoTool::entity_by_id(), ErrorCode, GQT, moab::GeomQueryTool::gttool(), MB_SUCCESS, origin, and moab::GeomQueryTool::point_in_box().
void gqt_point_in_box_4 | ( | ) |
Definition at line 316 of file gqt_simple_test.cpp.
References CHECK_EQUAL, moab::GeomTopoTool::entity_by_id(), ErrorCode, GQT, moab::GeomQueryTool::gttool(), MB_SUCCESS, origin, and moab::GeomQueryTool::point_in_box().
void gqt_point_in_box_5 | ( | ) |
Definition at line 327 of file gqt_simple_test.cpp.
References CHECK_EQUAL, moab::GeomTopoTool::entity_by_id(), ErrorCode, GQT, moab::GeomQueryTool::gttool(), MB_SUCCESS, origin, and moab::GeomQueryTool::point_in_box().
void gqt_rayfire | ( | ) |
Definition at line 215 of file gqt_simple_test.cpp.
References CHECK_ERR, CHECK_REAL_EQUAL, moab::GeomTopoTool::entity_by_id(), eps, ErrorCode, GQT, GTT, moab::GeomQueryTool::gttool(), moab::GeomQueryTool::initialize(), input_file, moab::Interface::load_file(), MBI, and moab::GeomQueryTool::ray_fire().
Referenced by main().
void gqt_test_boundary | ( | ) |
Definition at line 265 of file gqt_simple_test.cpp.
References CHECK_EQUAL, CHECK_ERR, moab::GeomTopoTool::entity_by_id(), ErrorCode, GQT, moab::GeomQueryTool::gttool(), and moab::GeomQueryTool::test_volume_boundary().
Referenced by main().
void gqt_test_obb_retreval | ( | ) |
Definition at line 87 of file gqt_simple_test.cpp.
References CHECK_ERR, ErrorCode, GQT, GTT, moab::GeomQueryTool::initialize(), input_file, moab::Interface::load_file(), MBI, and moab::Interface::write_file().
Referenced by main().
void gqt_test_obb_retreval_rayfire | ( | ) |
Definition at line 162 of file gqt_simple_test.cpp.
References CHECK_ERR, CHECK_REAL_EQUAL, moab::GeomTopoTool::entity_by_id(), eps, ErrorCode, GQT, GTT, moab::GeomQueryTool::gttool(), moab::GeomQueryTool::initialize(), input_file, moab::Interface::load_file(), MBI, moab::GeomQueryTool::ray_fire(), and moab::Interface::write_file().
Referenced by main().
int main | ( | int | , |
char ** | |||
) |
Definition at line 346 of file gqt_simple_test.cpp.
References cleanup(), gqt_build_obb(), gqt_closest_to(), gqt_create_impl_compl(), gqt_load_file(), gqt_load_file_dagmc_build_obb(), gqt_load_file_dagmc_internal_build_obb(), gqt_load_file_dagmc_via_moab_build_obb(), gqt_num_vols(), gqt_point_in(), gqt_rayfire(), gqt_test_boundary(), gqt_test_obb_retreval(), gqt_test_obb_retreval_rayfire(), and RUN_TEST.
GeomQueryTool* GQT |
Definition at line 16 of file gqt_simple_test.cpp.
Referenced by cleanup(), gqt_build_obb(), gqt_closest_to(), gqt_create_impl_compl(), gqt_load_file(), gqt_load_file_dagmc_build_obb(), gqt_load_file_dagmc_internal_build_obb(), gqt_load_file_dagmc_via_moab_build_obb(), gqt_num_vols(), gqt_point_in(), gqt_point_in_box_1(), gqt_point_in_box_2(), gqt_point_in_box_3(), gqt_point_in_box_4(), gqt_point_in_box_5(), gqt_rayfire(), gqt_test_boundary(), gqt_test_obb_retreval(), and gqt_test_obb_retreval_rayfire().
GeomTopoTool* GTT |
Definition at line 15 of file gqt_simple_test.cpp.
Referenced by cleanup(), gqt_load_file(), gqt_load_file_dagmc_build_obb(), gqt_load_file_dagmc_internal_build_obb(), gqt_load_file_dagmc_via_moab_build_obb(), gqt_point_in(), gqt_rayfire(), gqt_test_obb_retreval(), and gqt_test_obb_retreval_rayfire().
const std::string input_file = TestDir + "unittest/test_geom.h5m" |
Definition at line 29 of file gqt_simple_test.cpp.
Referenced by gqt_load_file(), gqt_load_file_dagmc_build_obb(), gqt_load_file_dagmc_internal_build_obb(), gqt_load_file_dagmc_via_moab_build_obb(), gqt_point_in(), gqt_rayfire(), gqt_test_obb_retreval(), and gqt_test_obb_retreval_rayfire().
Interface* MBI |
Definition at line 17 of file gqt_simple_test.cpp.
Referenced by cleanup(), gqt_load_file(), gqt_load_file_dagmc_build_obb(), gqt_load_file_dagmc_internal_build_obb(), gqt_load_file_dagmc_via_moab_build_obb(), gqt_point_in(), gqt_rayfire(), gqt_test_obb_retreval(), and gqt_test_obb_retreval_rayfire().