MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include "moab/Interface.hpp"
#include "TestUtil.hpp"
#include "moab/Core.hpp"
#include "moab/Types.hpp"
#include "MBTagConventions.hpp"
#include "moab/GeomTopoTool.hpp"
#include <iostream>
#include <map>
#include <set>
Go to the source code of this file.
Functions | |
bool | check_tree (Interface *mbi, GeomTopoTool *GTT, std::map< int, std::set< int > > &ref_map) |
ErrorCode | get_all_handles (Interface *mbi) |
Range | get_children_by_dimension (Interface *mbi, EntityHandle parent, int desired_dimension) |
void | heappermute (Interface *mbi, int v[], int n, std::map< int, std::set< int > > ref_map, int len) |
void | swap (int *x, int *y) |
void | get_cube_info (int cube_id, std::vector< double > &scale, std::vector< double > &trans) |
void | test_two_cubes () |
void | test_three_cubes () |
void | test_four_cubes () |
ErrorCode | build_cube (Interface *mbi, std::vector< double > scale_vec, std::vector< double > trans_vec, int object_id, EntityHandle &volume) |
int | main () |
Variables | |
Tag | category_tag |
Tag | geom_tag |
Tag | name_tag |
Tag | obj_name_tag |
Tag | dim_tag |
Tag | id_tag |
ErrorCode build_cube | ( | Interface * | mbi, |
std::vector< double > | scale_vec, | ||
std::vector< double > | trans_vec, | ||
int | object_id, | ||
EntityHandle & | volume | ||
) |
Definition at line 29 of file restore_topo_geom_incl_test.cpp.
References moab::Interface::add_entities(), moab::Interface::add_parent_child(), category_tag, moab::Interface::create_element(), moab::Interface::create_meshset(), moab::Interface::create_vertex(), ErrorCode, geom_tag, GTT, id_tag, MB_CHK_ERR, MB_SUCCESS, MBTRI, MESHSET_SET, name_tag, obj_name_tag, SENSE_FORWARD, moab::GeomTopoTool::set_sense(), and moab::Interface::tag_set_data().
Referenced by heappermute().
bool check_tree | ( | Interface * | mbi, |
GeomTopoTool * | GTT, | ||
std::map< int, std::set< int > > & | ref_map | ||
) |
Definition at line 176 of file restore_topo_geom_incl_test.cpp.
References moab::Range::begin(), moab::Range::clear(), moab::Range::end(), ErrorCode, get_children_by_dimension(), moab::GeomTopoTool::get_gsets_by_dimension(), GTT, id_tag, MB_CHK_ERR, moab::Range::size(), and moab::Interface::tag_get_data().
Referenced by heappermute().
Definition at line 152 of file restore_topo_geom_incl_test.cpp.
References category_tag, CATEGORY_TAG_NAME, CATEGORY_TAG_SIZE, ErrorCode, GEOM_DIMENSION_TAG_NAME, geom_tag, moab::Interface::globalId_tag(), id_tag, MB_CHK_ERR, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_INTEGER, MB_TYPE_OPAQUE, name_tag, NAME_TAG_NAME, NAME_TAG_SIZE, obj_name_tag, and moab::Interface::tag_get_handle().
Referenced by test_four_cubes(), test_three_cubes(), and test_two_cubes().
Range get_children_by_dimension | ( | Interface * | mbi, |
EntityHandle | parent, | ||
int | desired_dimension | ||
) |
Definition at line 224 of file restore_topo_geom_incl_test.cpp.
References moab::Range::begin(), moab::Range::clear(), moab::Range::end(), ErrorCode, geom_tag, moab::Interface::get_child_meshsets(), moab::Range::insert(), MB_CHK_SET_ERR_RET_VAL, and moab::Interface::tag_get_data().
Referenced by check_tree().
void get_cube_info | ( | int | cube_id, |
std::vector< double > & | scale, | ||
std::vector< double > & | trans | ||
) |
void heappermute | ( | Interface * | mbi, |
int | v[], | ||
int | n, | ||
std::map< int, std::set< int > > | ref_map, | ||
int | len | ||
) |
Definition at line 381 of file restore_topo_geom_incl_test.cpp.
References build_cube(), CHECK_EQUAL, check_tree(), moab::Range::clear(), moab::GeomTopoTool::construct_obb_trees(), moab::Interface::delete_mesh(), ErrorCode, get_cube_info(), GTT, moab::Range::insert(), MB_CHK_ERR_RET, moab::GeomTopoTool::restore_topology_from_geometric_inclusion(), and swap().
Referenced by test_four_cubes(), test_three_cubes(), and test_two_cubes().
int main | ( | ) |
Definition at line 141 of file restore_topo_geom_incl_test.cpp.
References RUN_TEST, test_four_cubes(), test_three_cubes(), and test_two_cubes().
void swap | ( | int * | x, |
int * | y | ||
) |
Definition at line 433 of file restore_topo_geom_incl_test.cpp.
Referenced by axis_dims(), moab::box_from_axes(), moab::GeomUtil::box_plane_overlap(), moab::GeomUtil::box_tet_overlap(), moab::SysUtil::byteswap(), moab::ParallelComm::check_clean_iface(), moab::OrientedBoxTreeTool::closest_to_location(), heappermute(), iRel_inferArrRelations(), leaf_iterator_test(), mb_skin_curve_test_common(), mb_skin_surface_test_common(), moab::OrientedBox::order_axes_by_length(), moab::ParallelMergeMesh::PerformRealSort(), permutation(), moab::HiReconstruction::polyfit3d_walf_curve_vertex(), moab::HiReconstruction::polyfit3d_walf_surf_vertex(), moab::ReadNASTRAN::read_element(), replace_surface(), moab::AdjSides< CORNERS >::Side::Side(), test_box_plane_norm(), test_pack_elements(), test_pack_higher_order(), test_read_prisms(), test_read_quads(), test_read_tets(), and moab::ParallelComm::unpack_entities().
void test_four_cubes | ( | ) |
Definition at line 350 of file restore_topo_geom_incl_test.cpp.
References ErrorCode, get_all_handles(), heappermute(), and MB_CHK_ERR_RET.
Referenced by main().
void test_three_cubes | ( | ) |
Definition at line 322 of file restore_topo_geom_incl_test.cpp.
References ErrorCode, get_all_handles(), heappermute(), and MB_CHK_ERR_RET.
Referenced by main().
void test_two_cubes | ( | ) |
Definition at line 295 of file restore_topo_geom_incl_test.cpp.
References ErrorCode, get_all_handles(), heappermute(), and MB_CHK_ERR_RET.
Referenced by main().
Tag category_tag |
Definition at line 13 of file restore_topo_geom_incl_test.cpp.
Referenced by build_cube(), get_all_handles(), read_cylcube_groups_test(), and moab::GeomTopoTool::setup_implicit_complement().
Tag dim_tag |
Definition at line 17 of file restore_topo_geom_incl_test.cpp.
Referenced by check_geometric_set(), moab::ReadSms::get_set(), main(), overlap_test_measure_area(), overlap_test_measure_volume(), overlap_test_point_in_volume(), overlap_test_ray_fire(), overlap_test_surface_sense(), overlap_test_tracking(), overlap_write_geometry(), moab::ReadTetGen::read_elem_file(), test_bc_sets(), test_closest_to_location(), test_geometric_sets(), test_measure_area(), test_measure_volume(), test_meshset_tags_1(), test_meshset_tags_2(), test_point_in_volume(), test_ray_fire(), test_read_geom_set(), test_surface_sense(), and write_geometry().
Tag geom_tag |
Definition at line 14 of file restore_topo_geom_incl_test.cpp.
Referenced by build_cube(), get_all_handles(), and get_children_by_dimension().
Tag id_tag |
Definition at line 17 of file restore_topo_geom_incl_test.cpp.
Referenced by build_cube(), check_tree(), and get_all_handles().
Tag name_tag |
Definition at line 15 of file restore_topo_geom_incl_test.cpp.
Referenced by build_cube(), and get_all_handles().
Tag obj_name_tag |
Definition at line 16 of file restore_topo_geom_incl_test.cpp.
Referenced by build_cube(), and get_all_handles().