MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include <vector>
#include <utility>
#include <iostream>
#include "moab/Core.hpp"
#include "moab/Interface.hpp"
#include "moab/Range.hpp"
Go to the source code of this file.
Classes | |
class | EntityCount |
Variables | |
Interface * | gMB = 0 |
ErrorCode coincident_counts | ( | EntityCount & | curr_count, |
EntityCount & | diff_count | ||
) |
Definition at line 275 of file merge_test.cpp.
References EntityCount::edge, entities, find_coincident_edges(), find_coincident_elements(), find_coincident_nodes(), moab::Interface::get_entities_by_type(), gMB, EntityCount::hex, MB_SUCCESS, MBEDGE, MBHEX, MBQUAD, MBTET, MBTRI, MBVERTEX, EntityCount::node, EntityCount::quad, EntityCount::tet, and EntityCount::tri.
Referenced by merge_top_down(), process_bu_auto_merge(), process_mo_auto_merge(), and process_td_auto_merge().
ErrorCode find_coincident_edges | ( | Range | entities, |
std::vector< std::pair< EntityHandle, EntityHandle > > & | coin_edges | ||
) |
Definition at line 171 of file merge_test.cpp.
References entities, moab::Interface::get_connectivity(), moab::Interface::get_coords(), gMB, MB_SUCCESS, and points_are_coincident().
Referenced by coincident_counts(), merge_edges(), merge_top_down(), process_mo_auto_merge(), and process_td_auto_merge().
ErrorCode find_coincident_elements | ( | Range | entities, |
int | num_nodes, | ||
std::vector< std::pair< EntityHandle, EntityHandle > > & | coin | ||
) |
Definition at line 214 of file merge_test.cpp.
References entities, moab::Interface::get_connectivity(), moab::Interface::get_coords(), gMB, MB_SUCCESS, and points_are_coincident().
Referenced by coincident_counts(), merge_2D_elem(), merge_3D_elem(), merge_top_down(), and process_td_auto_merge().
ErrorCode find_coincident_nodes | ( | Range | vertices, |
std::vector< std::pair< EntityHandle, EntityHandle > > & | coin_nodes | ||
) |
Definition at line 140 of file merge_test.cpp.
References moab::Range::begin(), moab::Range::end(), ErrorCode, moab::Interface::get_coords(), gMB, MB_SUCCESS, and points_are_coincident().
Referenced by coincident_counts(), merge_nodes(), process_bu_auto_merge(), process_mo_auto_merge(), and process_td_auto_merge().
int main | ( | ) |
Definition at line 945 of file merge_test.cpp.
References ErrorCode, gMB, MB_SUCCESS, process_bu_auto_merge(), process_merge(), process_mo_auto_merge(), and process_td_auto_merge().
ErrorCode merge_2D_elem | ( | EntityCount & | init_count, |
EntityCount & | curr_count | ||
) |
Definition at line 481 of file merge_test.cpp.
References EntityCount::edge, entities, ErrorCode, find_coincident_elements(), EntityCount::get_counts(), moab::Interface::get_entities_by_type(), gMB, EntityCount::hex, moab::Interface::id_from_handle(), MB_SUCCESS, MBQUAD, MBTRI, moab::Interface::merge_entities(), EntityCount::node, EntityCount::quad, EntityCount::tet, and EntityCount::tri.
Referenced by process_merge().
ErrorCode merge_3D_elem | ( | EntityCount & | init_count, |
EntityCount & | curr_count | ||
) |
Definition at line 557 of file merge_test.cpp.
References EntityCount::edge, entities, ErrorCode, find_coincident_elements(), EntityCount::get_counts(), moab::Interface::get_entities_by_type(), gMB, EntityCount::hex, moab::Interface::id_from_handle(), MB_SUCCESS, MBHEX, MBTET, moab::Interface::merge_entities(), EntityCount::node, EntityCount::quad, EntityCount::tet, and EntityCount::tri.
Referenced by process_merge().
ErrorCode merge_edges | ( | EntityCount & | init_count, |
EntityCount & | curr_count | ||
) |
Definition at line 433 of file merge_test.cpp.
References EntityCount::edge, entities, ErrorCode, find_coincident_edges(), EntityCount::get_counts(), moab::Interface::get_entities_by_type(), gMB, EntityCount::hex, moab::Interface::id_from_handle(), MB_SUCCESS, MBEDGE, moab::Interface::merge_entities(), EntityCount::node, EntityCount::quad, EntityCount::tet, and EntityCount::tri.
Referenced by process_merge().
ErrorCode merge_nodes | ( | EntityCount & | init_count, |
EntityCount & | curr_count | ||
) |
Definition at line 388 of file merge_test.cpp.
References EntityCount::edge, ErrorCode, find_coincident_nodes(), EntityCount::get_counts(), moab::Interface::get_entities_by_type(), gMB, EntityCount::hex, MB_SUCCESS, MBVERTEX, moab::Interface::merge_entities(), EntityCount::node, EntityCount::quad, EntityCount::tet, and EntityCount::tri.
Referenced by process_merge().
ErrorCode merge_top_down | ( | EntityCount & | init_count, |
EntityCount & | curr_count | ||
) |
Definition at line 332 of file merge_test.cpp.
References coincident_counts(), EntityCount::edge, entities, find_coincident_edges(), find_coincident_elements(), EntityCount::get_counts(), moab::Interface::get_entities_by_type(), gMB, EntityCount::hex, MB_SUCCESS, MBEDGE, MBHEX, MBQUAD, MBTET, MBTRI, moab::Interface::merge_entities(), EntityCount::node, EntityCount::quad, EntityCount::tet, and EntityCount::tri.
Referenced by process_merge().
bool points_are_coincident | ( | const double * | first, |
const double * | second | ||
) |
Definition at line 126 of file merge_test.cpp.
References moab::GeomUtil::first(), and length().
Referenced by find_coincident_edges(), find_coincident_elements(), and find_coincident_nodes().
ErrorCode process_bu_auto_merge | ( | std::string & | file_name | ) |
Definition at line 845 of file merge_test.cpp.
References coincident_counts(), EntityCount::copy_counts(), EntityCount::edge, entities, find_coincident_nodes(), EntityCount::get_counts(), moab::Interface::get_entities_by_type(), gMB, EntityCount::hex, MB_SUCCESS, MBVERTEX, moab::Interface::merge_entities(), EntityCount::node, EntityCount::print(), EntityCount::quad, read_file(), EntityCount::tet, and EntityCount::tri.
Referenced by main().
ErrorCode process_merge | ( | std::string & | file_name | ) |
Definition at line 902 of file merge_test.cpp.
References EntityCount::copy_counts(), EntityCount::get_counts(), MB_SUCCESS, merge_2D_elem(), merge_3D_elem(), merge_edges(), merge_nodes(), merge_top_down(), EntityCount::print(), read_file(), and write_file().
Referenced by main().
ErrorCode process_mo_auto_merge | ( | std::string & | file_name | ) |
Definition at line 780 of file merge_test.cpp.
References coincident_counts(), EntityCount::copy_counts(), EntityCount::edge, entities, find_coincident_edges(), find_coincident_nodes(), EntityCount::get_counts(), moab::Interface::get_entities_by_type(), gMB, EntityCount::hex, MB_SUCCESS, MBEDGE, MBVERTEX, moab::Interface::merge_entities(), EntityCount::node, EntityCount::print(), EntityCount::quad, read_file(), EntityCount::tet, and EntityCount::tri.
Referenced by main().
ErrorCode process_td_auto_merge | ( | std::string & | file_name | ) |
Definition at line 696 of file merge_test.cpp.
References coincident_counts(), EntityCount::copy_counts(), EntityCount::edge, entities, find_coincident_edges(), find_coincident_elements(), find_coincident_nodes(), EntityCount::get_counts(), moab::Interface::get_entities_by_type(), gMB, EntityCount::hex, MB_SUCCESS, MBEDGE, MBHEX, MBQUAD, MBTET, MBTRI, MBVERTEX, moab::Interface::merge_entities(), EntityCount::node, EntityCount::print(), EntityCount::quad, read_file(), EntityCount::tet, and EntityCount::tri.
Referenced by main().
ErrorCode read_file | ( | std::string & | file_name, |
EntityCount & | counts | ||
) |
Definition at line 632 of file merge_test.cpp.
References moab::Interface::delete_mesh(), EntityCount::get_counts(), gMB, moab::Interface::load_mesh(), and MB_SUCCESS.
Referenced by process_bu_auto_merge(), process_merge(), process_mo_auto_merge(), and process_td_auto_merge().
ErrorCode write_file | ( | std::string & | file_name | ) |
Definition at line 654 of file merge_test.cpp.
References moab::Range::begin(), moab::Range::end(), ErrorCode, moab::Interface::get_entities_by_type_and_tag(), gMB, MB_SUCCESS, MBENTITYSET, moab::Interface::tag_get_data(), moab::Interface::tag_get_handle(), and moab::Interface::write_mesh().
Referenced by process_merge(), moab::Core::write_file(), and moab::Core::write_mesh().
Interface* gMB = 0 |
Definition at line 11 of file merge_test.cpp.
Referenced by coincident_counts(), EntityCount::create_adjacencies(), find_coincident_edges(), find_coincident_elements(), find_coincident_nodes(), EntityCount::get_counts(), main(), merge_2D_elem(), merge_3D_elem(), merge_edges(), merge_nodes(), merge_top_down(), process_bu_auto_merge(), process_mo_auto_merge(), process_td_auto_merge(), read_file(), and write_file().