MOAB: Mesh Oriented datABase
(version 5.5.0)
|
test geometrize method from GeomTopoTool More...
#include "moab/Core.hpp"
#include <iostream>
#include <cassert>
#include <cstring>
#include <cstdio>
#include "TestUtil.hpp"
#include "moab/GeomTopoTool.hpp"
#include "MBTagConventions.hpp"
Go to the source code of this file.
Functions | |
ErrorCode | geometrize_test (Interface *mb, EntityHandle inputSet) |
ErrorCode | create_shell_test (Interface *mb) |
ErrorCode | duplicate_model_test (Interface *mb) |
ErrorCode | check_model_test (Interface *mb) |
ErrorCode | test_root_sets_resize (Interface *mb) |
ErrorCode | test_delete_obb_tree (Interface *mb) |
ErrorCode | test_restore_obb_trees (Interface *mb, Interface *mb2, Interface *mb3) |
void | handle_error_code (ErrorCode rv, int &number_failed, int &number_successful) |
int | main (int argc, char *argv[]) |
Variables | |
std::string | filename |
std::string | filename2 |
std::string | ofile |
std::string | ofile2 |
std::string | ofile3 |
std::string | ofile4 |
std::string | ofile5 |
const char | OBB_ROOT_TAG_NAME [] = "OBB_ROOT" |
Tag | obbRootTag |
bool | remove_output_file |
test geometrize method from GeomTopoTool
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
Definition in file gttool_test.cpp.
Definition at line 424 of file gttool_test.cpp.
References moab::GeomTopoTool::check_model(), moab::Core::delete_mesh(), ErrorCode, moab::Core::load_file(), mb, MB_CHK_ERR, MB_CHK_SET_ERR, MB_SUCCESS, ofile3, and remove_output_file.
Referenced by main().
Definition at line 196 of file gttool_test.cpp.
References moab::Core::add_entities(), moab::GeomTopoTool::add_geo_set(), moab::Core::add_parent_child(), moab::Core::create_element(), moab::Core::create_meshset(), moab::Core::create_vertices(), moab::Core::delete_mesh(), ErrorCode, moab::GeomTopoTool::find_geomsets(), moab::Core::load_file(), mb, MB_CHK_ERR, MB_CHK_SET_ERR, MB_SUCCESS, MBEDGE, MBTRI, MESHSET_SET, ofile2, remove_output_file, SENSE_FORWARD, SENSE_REVERSE, moab::GeomTopoTool::set_senses(), size, and moab::Core::write_mesh().
Referenced by main().
Definition at line 393 of file gttool_test.cpp.
References moab::GeomTopoTool::duplicate_model(), ErrorCode, moab::GeomTopoTool::find_geomsets(), moab::GeomTopoTool::get_root_model_set(), mb, MB_CHK_ERR, MB_CHK_SET_ERR, MB_SUCCESS, ofile3, size, and moab::Core::write_file().
Referenced by main().
ErrorCode geometrize_test | ( | Interface * | mb, |
EntityHandle | inputSet | ||
) |
Definition at line 181 of file gttool_test.cpp.
References ErrorCode, moab::GeomTopoTool::geometrize_surface_set(), mb, MB_CHK_SET_ERR, MB_SUCCESS, ofile, remove_output_file, and moab::Core::write_file().
Referenced by main().
void handle_error_code | ( | ErrorCode | rv, |
int & | number_failed, | ||
int & | number_successful | ||
) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 67 of file gttool_test.cpp.
References check_model_test(), create_shell_test(), duplicate_model_test(), ErrorCode, filename, filename2, geometrize_test(), handle_error_code(), moab::Core::load_file(), mb, MB_SUCCESS, mbcore, number_tests_failed, number_tests_successful, ofile, ofile2, ofile3, ofile4, ofile5, remove_output_file, test_delete_obb_tree(), test_restore_obb_trees(), and test_root_sets_resize().
Definition at line 512 of file gttool_test.cpp.
References moab::Range::begin(), moab::GeomTopoTool::construct_obb_tree(), moab::GeomTopoTool::delete_obb_tree(), moab::Range::end(), ErrorCode, filename2, moab::Range::front(), moab::GeomTopoTool::get_gsets_by_dimension(), moab::GeomTopoTool::get_root(), moab::Core::load_file(), mb, MB_CHK_SET_ERR, MB_CHK_SET_ERR_CONT, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_HANDLE, moab::OBB_ROOT_TAG_NAME, obbRootTag, moab::Core::tag_get_data(), and moab::Core::tag_get_handle().
Referenced by main().
Definition at line 598 of file gttool_test.cpp.
References moab::Range::begin(), CHECK, moab::Range::clear(), moab::GeomTopoTool::construct_obb_trees(), moab::GeomTopoTool::delete_obb_tree(), moab::Range::end(), ErrorCode, filename2, moab::Range::front(), moab::GeomTopoTool::get_gsets_by_dimension(), moab::GeomTopoTool::get_root(), moab::Range::insert_list(), moab::Core::load_file(), moab::Interface::load_file(), mb, MB_CHK_SET_ERR, MB_CHK_SET_ERR_CONT, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_HANDLE, moab::OBB_ROOT_TAG_NAME, obbRootTag, ofile4, ofile5, moab::Interface::tag_get_data(), moab::Interface::tag_get_handle(), and moab::Core::write_file().
Referenced by main().
Definition at line 444 of file gttool_test.cpp.
References moab::GeomTopoTool::add_geo_set(), moab::Range::begin(), CHECK, moab::GeomTopoTool::construct_obb_tree(), moab::Core::delete_mesh(), dim, moab::Range::end(), ErrorCode, filename2, GEOM_DIMENSION_TAG_NAME, geomTag, moab::Core::get_entities_by_type_and_tag(), moab::GeomTopoTool::get_root(), moab::Core::load_file(), mb, MB_CHK_SET_ERR, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_INTEGER, MBENTITYSET, moab::Range::rbegin(), moab::Range::rend(), and moab::Core::tag_get_handle().
Referenced by main().
std::string filename |
Definition at line 27 of file gttool_test.cpp.
Referenced by main().
std::string filename2 |
Definition at line 28 of file gttool_test.cpp.
Referenced by main(), test_delete_obb_tree(), test_restore_obb_trees(), test_root_sets_resize(), and test_set_flags().
const char OBB_ROOT_TAG_NAME[] = "OBB_ROOT" |
Definition at line 35 of file gttool_test.cpp.
Tag obbRootTag |
Definition at line 36 of file gttool_test.cpp.
Referenced by test_delete_obb_tree(), and test_restore_obb_trees().
std::string ofile |
Definition at line 29 of file gttool_test.cpp.
Referenced by geometrize_test(), moab::WriteGMV::local_write_mesh(), and main().
std::string ofile2 |
Definition at line 30 of file gttool_test.cpp.
Referenced by create_shell_test(), and main().
std::string ofile3 |
Definition at line 31 of file gttool_test.cpp.
Referenced by check_model_test(), duplicate_model_test(), and main().
std::string ofile4 |
Definition at line 32 of file gttool_test.cpp.
Referenced by main(), and test_restore_obb_trees().
std::string ofile5 |
Definition at line 33 of file gttool_test.cpp.
Referenced by main(), and test_restore_obb_trees().
bool remove_output_file |
Definition at line 38 of file gttool_test.cpp.
Referenced by check_model_test(), create_shell_test(), geometrize_test(), and main().