class AEntityFactory More...
#include <AEntityFactory.hpp>
Public Member Functions | |
AEntityFactory (Core *mdb) | |
require an Interface object in order to access tags on that interface More... | |
~AEntityFactory () | |
destructor More... | |
ErrorCode | add_adjacency (EntityHandle from_ent, EntityHandle to_ent, const bool both_ways=false) |
add an adjacency from from_ent to to_ent; if both_ways is true, add one in reverse too NOTE: this function is defined even though we may only be implementing vertex-based up-adjacencies More... | |
ErrorCode | remove_adjacency (EntityHandle base_entity, EntityHandle adjacency_to_remove) |
remove an adjacency from from the base_entity. More... | |
ErrorCode | remove_all_adjacencies (EntityHandle base_entity, const bool delete_adj_list=false) |
remove all adjacencies from from the base_entity. More... | |
ErrorCode | get_elements (EntityHandle source_entity, const unsigned int target_dimension, std::vector< EntityHandle > &target_entities, const bool create_if_missing, const int create_adjacency_option=-1) |
Get adjacencies for a single source entity. More... | |
ErrorCode | get_polyhedron_vertices (const EntityHandle source_entity, std::vector< EntityHandle > &target_entities) |
get the vertices for a polyhedron (special implementation because for polyhedra connectivity array stores faces) More... | |
ErrorCode | get_associated_meshsets (EntityHandle source_entity, std::vector< EntityHandle > &target_entities) |
get the meshsets that are in source_entitiy's adjacency vector More... | |
ErrorCode | get_element (const EntityHandle *vertex_list, const int vertex_list_size, const EntityType target_type, EntityHandle &target_entity, const bool create_if_missing, const EntityHandle source_entity=0, const int create_adjacency_option=-1) |
get the element defined by the vertices in vertex_list, of the type target_type, passing back in target_entity; if create_if_missing is true and no entity is found, one is created; if create_adjacency_option is >= 0, adjacencies from entities of that dimension to target_entity are created (only create_adjacency_option=0 is supported right now, so that never creates other ancillary entities); explicitly require the vertex_list_size for consistency, even though we could probably get it from target_type More... | |
ErrorCode | get_adjacencies (const EntityHandle entity, const unsigned int to_dimension, bool create_if_missing, std::vector< EntityHandle > &adjacent_entities) |
Get adjacent entities. More... | |
ErrorCode | get_adjacencies (EntityHandle entity, const EntityHandle *&adjacent_entities, int &num_entities) const |
return const array * for adjacencies More... | |
ErrorCode | get_adjacencies (EntityHandle entity, std::vector< EntityHandle > *&adj_vec_ptr_out, bool create_if_missing=false) |
ErrorCode | get_adjacencies (EntityHandle entity, std::vector< EntityHandle > &adjacent_entities) const |
returns the entities in sorted order More... | |
ErrorCode | create_vert_elem_adjacencies () |
creates vertex to element adjacency information More... | |
bool | vert_elem_adjacencies () const |
returns whether vertex to element adjacencies are being stored More... | |
ErrorCode | notify_delete_entity (EntityHandle entity) |
calling code notifying this that an entity is getting deleted More... | |
ErrorCode | notify_create_entity (const EntityHandle entity, const EntityHandle *node_array, const int number_nodes) |
calling code notifying this that to update connectivity of 'entity' More... | |
ErrorCode | notify_change_connectivity (EntityHandle entity, const EntityHandle *old_array, const EntityHandle *new_array, int number_nodes) |
calling code notifying that an entity changed its connectivity More... | |
bool | explicitly_adjacent (const EntityHandle ent1, const EntityHandle ent2) |
return true if 2 entities are explicitly adjacent More... | |
ErrorCode | merge_adjust_adjacencies (EntityHandle entity_to_keep, EntityHandle entity_to_remove) |
in preparation for merging two entities, adjust adjacencies so that entity_to_keep will be adjacent to the "right" entities after merge (also checks for potential formation of equivalent entities and creates explicit adjacencies accordingly) More... | |
void | get_memory_use (unsigned long long &total_entity_storage, unsigned long long &total_storage) |
ErrorCode | get_memory_use (const Range &entities, unsigned long long &total_entity_storage, unsigned long long &total_amortized_storage) |
Private Member Functions | |
ErrorCode | get_adjacency_ptr (EntityHandle, std::vector< EntityHandle > *&) |
ErrorCode | get_adjacency_ptr (EntityHandle, const std::vector< EntityHandle > *&) const |
ErrorCode | set_adjacency_ptr (EntityHandle, std::vector< EntityHandle > *) |
ErrorCode | get_vertices (EntityHandle h, const EntityHandle *&vect_out, int &count_out, std::vector< EntityHandle > &storage) |
AEntityFactory () | |
private constructor to prevent the construction of a default one More... | |
bool | entities_equivalent (const EntityHandle this_entity, const EntityHandle *vertex_list, const int vertex_list_size, const EntityType target_type) |
compare vertex_list to the vertices in this_entity, and return true if they contain the same vertices More... | |
ErrorCode | get_zero_to_n_elements (EntityHandle source_entity, const unsigned int target_dimension, std::vector< EntityHandle > &target_entities, const bool create_if_missing, const int create_adjacency_option=-1) |
ErrorCode | get_down_adjacency_elements (EntityHandle source_entity, const unsigned int target_dimension, std::vector< EntityHandle > &target_entities, const bool create_if_missing, const int create_adjacency_option=-1) |
ErrorCode | get_down_adjacency_elements_poly (EntityHandle source_entity, const unsigned int target_dimension, std::vector< EntityHandle > &target_entities, const bool create_if_missing, const int create_adjacency_option=-1) |
ErrorCode | get_up_adjacency_elements (EntityHandle source_entity, const unsigned int target_dimension, std::vector< EntityHandle > &target_entities, const bool create_if_missing, const int create_adjacency_option=-1) |
ErrorCode | check_equiv_entities (EntityHandle entity_to_keep, EntityHandle entity_to_remove) |
check for equivalent entities that may be formed when merging two entities, and create explicit adjacencies accordingly More... | |
ErrorCode | create_explicit_adjs (EntityHandle this_ent) |
create explicit adjacencies between this_ent and all adjacent entities of higher dimension More... | |
Private Attributes | |
Core * | thisMB |
interface associated with this tool More... | |
bool | mVertElemAdj |
whether vertex to element adjacencies are begin done More... | |
class AEntityFactory
Definition at line 33 of file AEntityFactory.hpp.
moab::AEntityFactory::AEntityFactory | ( | Core * | mdb | ) |
require an Interface object in order to access tags on that interface
Definition at line 55 of file AEntityFactory.cpp.
References mVertElemAdj, and thisMB.
moab::AEntityFactory::~AEntityFactory | ( | ) |
destructor
Definition at line 62 of file AEntityFactory.cpp.
References moab::TypeSequenceManager::begin(), moab::TypeSequenceManager::end(), moab::SequenceManager::entity_map(), MBENTITYSET, MBVERTEX, moab::Core::sequence_manager(), and thisMB.
|
private |
private constructor to prevent the construction of a default one
ErrorCode moab::AEntityFactory::add_adjacency | ( | EntityHandle | from_ent, |
EntityHandle | to_ent, | ||
const bool | both_ways = false |
||
) |
add an adjacency from from_ent to to_ent; if both_ways is true, add one in reverse too NOTE: this function is defined even though we may only be implementing vertex-based up-adjacencies
Definition at line 368 of file AEntityFactory.cpp.
References ErrorCode, get_adjacencies(), MB_ALREADY_ALLOCATED, MB_SUCCESS, MBVERTEX, and moab::TYPE_FROM_HANDLE().
Referenced by moab::MeshSet::create_adjacencies(), create_explicit_adjs(), create_vert_elem_adjacencies(), get_down_adjacency_elements_poly(), merge_adjust_adjacencies(), notify_change_connectivity(), notify_create_entity(), moab::range_tool< pair_iter_t >::ranged_insert_entities(), moab::MeshSet::replace_entities(), moab::range_tool< pair_iter_t >::vector_insert_entities(), and moab::vector_insert_vector().
|
private |
check for equivalent entities that may be formed when merging two entities, and create explicit adjacencies accordingly
Definition at line 1343 of file AEntityFactory.cpp.
References moab::Range::begin(), create_explicit_adjs(), dim, moab::Core::dimension_from_handle(), moab::Range::end(), ErrorCode, moab::Range::find(), moab::Core::get_adjacencies(), MB_SUCCESS, moab::Range::size(), thisMB, moab::TYPE_FROM_HANDLE(), moab::Interface::UNION, and moab::CN::VerticesPerEntity().
Referenced by merge_adjust_adjacencies().
|
private |
create explicit adjacencies between this_ent and all adjacent entities of higher dimension
Definition at line 1397 of file AEntityFactory.cpp.
References add_adjacency(), moab::Range::begin(), moab::Core::dimension_from_handle(), moab::Range::end(), ErrorCode, moab::Core::get_adjacencies(), MB_SUCCESS, thisMB, and moab::Interface::UNION.
Referenced by check_equiv_entities().
ErrorCode moab::AEntityFactory::create_vert_elem_adjacencies | ( | ) |
creates vertex to element adjacency information
Definition at line 475 of file AEntityFactory.cpp.
References add_adjacency(), moab::Range::begin(), moab::Range::clear(), moab::Range::end(), ErrorCode, moab::Core::get_entities_by_type(), get_vertices(), MB_SUCCESS, MBEDGE, MBENTITYSET, mVertElemAdj, and thisMB.
Referenced by moab::HigherOrderFactory::center_node_exist(), moab::TempestRemapper::ComputeOverlapMesh(), moab::NCHelperDomain::create_mesh(), moab::NCHelperScrip::create_mesh(), moab::Skinner::find_skin(), get_adjacencies(), get_element(), get_elements(), and moab::ParCommGraph::receive_mesh().
|
private |
compare vertex_list to the vertices in this_entity, and return true if they contain the same vertices
Definition at line 293 of file AEntityFactory.cpp.
References moab::Core::get_connectivity(), MBPOLYGON, MBPOLYHEDRON, MBVERTEX, thisMB, moab::TYPE_FROM_HANDLE(), and moab::CN::VerticesPerEntity().
Referenced by get_element().
bool moab::AEntityFactory::explicitly_adjacent | ( | const EntityHandle | ent1, |
const EntityHandle | ent2 | ||
) |
return true if 2 entities are explicitly adjacent
Definition at line 1259 of file AEntityFactory.cpp.
References get_adjacencies().
Referenced by merge_adjust_adjacencies(), and remove_all_adjacencies().
ErrorCode moab::AEntityFactory::get_adjacencies | ( | const EntityHandle | entity, |
const unsigned int | to_dimension, | ||
bool | create_if_missing, | ||
std::vector< EntityHandle > & | adjacent_entities | ||
) |
Get adjacent entities.
entity | The source entity for which to retrieve adjacent entities. |
to_dimension | The adjacent entities to retrieve, specified by dimension. |
create_if_missing | Create adjacent entities that do not already exist. |
adjacent_entities | The resulting adjacent entities are appended to this list. |
Definition at line 560 of file AEntityFactory.cpp.
References create_vert_elem_adjacencies(), moab::CN::Dimension(), ErrorCode, get_associated_meshsets(), moab::Core::get_connectivity(), get_down_adjacency_elements(), get_polyhedron_vertices(), get_up_adjacency_elements(), get_zero_to_n_elements(), MB_SUCCESS, MBPOLYHEDRON, mVertElemAdj, thisMB, and moab::TYPE_FROM_HANDLE().
Referenced by add_adjacency(), moab::HigherOrderFactory::center_node_exist(), moab::TempestRemapper::ComputeOverlapMesh(), explicitly_adjacent(), moab::WriteUtil::get_adjacencies(), get_associated_meshsets(), get_down_adjacency_elements_poly(), get_element(), get_up_adjacency_elements(), get_zero_to_n_elements(), merge_adjust_adjacencies(), notify_create_entity(), notify_delete_entity(), remove_adjacency(), remove_all_adjacencies(), and moab::HigherOrderFactory::tag_for_deletion().
ErrorCode moab::AEntityFactory::get_adjacencies | ( | EntityHandle | entity, |
const EntityHandle *& | adjacent_entities, | ||
int & | num_entities | ||
) | const |
return const array * for adjacencies
Definition at line 511 of file AEntityFactory.cpp.
References ErrorCode, get_adjacency_ptr(), and MB_SUCCESS.
ErrorCode moab::AEntityFactory::get_adjacencies | ( | EntityHandle | entity, |
std::vector< EntityHandle > & | adjacent_entities | ||
) | const |
returns the entities in sorted order
Definition at line 529 of file AEntityFactory.cpp.
References ErrorCode, get_adjacency_ptr(), and MB_SUCCESS.
ErrorCode moab::AEntityFactory::get_adjacencies | ( | EntityHandle | entity, |
std::vector< EntityHandle > *& | adj_vec_ptr_out, | ||
bool | create_if_missing = false |
||
) |
Definition at line 543 of file AEntityFactory.cpp.
References ErrorCode, get_adjacency_ptr(), MB_SUCCESS, and set_adjacency_ptr().
|
private |
Definition at line 1428 of file AEntityFactory.cpp.
References moab::EntitySequence::data(), ErrorCode, moab::SequenceManager::find(), moab::SequenceData::get_adjacency_data(), MB_SUCCESS, moab::Core::sequence_manager(), moab::SequenceData::start_handle(), and thisMB.
|
private |
Definition at line 1416 of file AEntityFactory.cpp.
References moab::EntitySequence::data(), ErrorCode, moab::SequenceManager::find(), moab::SequenceData::get_adjacency_data(), MB_SUCCESS, moab::Core::sequence_manager(), moab::SequenceData::start_handle(), and thisMB.
Referenced by get_adjacencies(), and get_memory_use().
ErrorCode moab::AEntityFactory::get_associated_meshsets | ( | EntityHandle | source_entity, |
std::vector< EntityHandle > & | target_entities | ||
) |
get the meshsets that are in source_entitiy's adjacency vector
Definition at line 152 of file AEntityFactory.cpp.
References moab::CREATE_HANDLE(), moab::dum, ErrorCode, get_adjacencies(), MB_END_ID, MB_START_ID, MB_SUCCESS, and moab::CN::TypeDimensionMap.
Referenced by get_adjacencies().
|
private |
Definition at line 687 of file AEntityFactory.cpp.
References moab::CN::AdjacentSubEntities(), moab::CN::ConnMap::conn, ErrorCode, moab::Core::get_connectivity(), get_down_adjacency_elements_poly(), get_element(), moab::CN::HasMidNodes(), moab::CN::HONodeIndex(), MB_INDEX_OUT_OF_RANGE, MB_SUCCESS, MBPOLYGON, MBPOLYHEDRON, moab::CN::mConnectivityMap, moab::CN::ConnMap::num_corners_per_sub_element, moab::CN::NumSubEntities(), moab::CN::ConnMap::target_type, thisMB, and moab::TYPE_FROM_HANDLE().
Referenced by get_adjacencies(), get_elements(), and get_zero_to_n_elements().
|
private |
Definition at line 771 of file AEntityFactory.cpp.
References add_adjacency(), moab::Range::begin(), moab::Core::create_element(), moab::Range::end(), ErrorCode, moab::Core::get_adjacencies(), get_adjacencies(), moab::Core::get_connectivity(), moab::Range::insert(), MB_MULTIPLE_ENTITIES_FOUND, MB_SUCCESS, MB_TYPE_OUT_OF_RANGE, MBEDGE, MBPOLYGON, MBPOLYHEDRON, moab::Range::size(), thisMB, moab::TYPE_FROM_HANDLE(), and moab::Interface::UNION.
Referenced by get_down_adjacency_elements().
ErrorCode moab::AEntityFactory::get_element | ( | const EntityHandle * | vertex_list, |
const int | vertex_list_size, | ||
const EntityType | target_type, | ||
EntityHandle & | target_entity, | ||
const bool | create_if_missing, | ||
const EntityHandle | source_entity = 0 , |
||
const int | create_adjacency_option = -1 |
||
) |
get the element defined by the vertices in vertex_list, of the type target_type, passing back in target_entity; if create_if_missing is true and no entity is found, one is created; if create_adjacency_option is >= 0, adjacencies from entities of that dimension to target_entity are created (only create_adjacency_option=0 is supported right now, so that never creates other ancillary entities); explicitly require the vertex_list_size for consistency, even though we could probably get it from target_type
get the element defined by the vertices in vertex_list, of the type target_type, passing back in target_entity; if create_if_missing is true and no entity is found, one is created; if create_adjacency_option is >= 0, adjacencies from entities of that dimension to target_entity are created (only create_adjacency_option=0 is supported right now, so that never creates other ancillary entities)
Definition at line 183 of file AEntityFactory.cpp.
References moab::MeshTopoUtil::common_entity(), moab::Core::create_element(), moab::CREATE_HANDLE(), create_vert_elem_adjacencies(), moab::CN::Dimension(), moab::Core::dimension_from_handle(), moab::dum, entities_equivalent(), ErrorCode, get_adjacencies(), MB_END_ID, MB_MULTIPLE_ENTITIES_FOUND, MB_START_ID, MB_SUCCESS, mVertElemAdj, thisMB, and moab::TYPE_FROM_HANDLE().
Referenced by get_down_adjacency_elements(), and get_up_adjacency_elements().
ErrorCode moab::AEntityFactory::get_elements | ( | EntityHandle | source_entity, |
const unsigned int | target_dimension, | ||
std::vector< EntityHandle > & | target_entities, | ||
const bool | create_if_missing, | ||
const int | create_adjacency_option = -1 |
||
) |
Get adjacencies for a single source entity.
get the elements contained by source_entity, of type target_type, passing back in target_entities; if create_if_missing is true and no entity is found, one is created; if create_adjacency_option is >= 0, adjacencies from entities of that dimension to each target_entity are created (this function uses AEntityFactory::get_element for each element)
Get adjacent entities.
source_entity | The entity for which to retrieve the adjacencies. |
target_dimension | Retrieve adjacent entities of this dimension. Must be in the range [1,3], where 4 is used to indicated entity sets. |
target_entities | Requested adjacent entities will be appended to this list. |
create_if_missing | If true, adjacent elements of the specified dimension will be created if they do not already exist. If the target dimension is less than the dimension of the input entity and greater than zero, the elements will be created as required to represent the "sides" of the source element. If the target dimension is greater than that of the source entity and less than 3, then sides of the specified dimension on that are a) of greater dimension and b) adjacent to the input entity will be created. |
create_adjacency_option | If create_adjacency_option is >= 0, adjacencies from entities of that dimension to each target_entity are created (this function uses AEntityFactory::get_element for each element) |
Definition at line 92 of file AEntityFactory.cpp.
References create_vert_elem_adjacencies(), moab::CN::Dimension(), ErrorCode, get_down_adjacency_elements(), get_up_adjacency_elements(), get_zero_to_n_elements(), MB_SUCCESS, MB_TYPE_OUT_OF_RANGE, MBENTITYSET, mVertElemAdj, and moab::TYPE_FROM_HANDLE().
ErrorCode moab::AEntityFactory::get_memory_use | ( | const Range & | entities, |
unsigned long long & | total_entity_storage, | ||
unsigned long long & | total_amortized_storage | ||
) |
Definition at line 1488 of file AEntityFactory.cpp.
References moab::Range::begin(), moab::EntitySequence::data(), moab::Range::end(), moab::SequenceManager::entity_map(), ErrorCode, moab::SequenceData::get_adjacency_data(), moab::RangeSeqIntersectIter::get_end_handle(), moab::TypeSequenceManager::get_occupied_size(), moab::RangeSeqIntersectIter::get_sequence(), moab::RangeSeqIntersectIter::get_start_handle(), moab::RangeSeqIntersectIter::init(), MB_SUCCESS, moab::Core::sequence_manager(), moab::SequenceData::size(), moab::SequenceData::start_handle(), moab::RangeSeqIntersectIter::step(), thisMB, and moab::EntitySequence::type().
void moab::AEntityFactory::get_memory_use | ( | unsigned long long & | total_entity_storage, |
unsigned long long & | total_storage | ||
) |
Definition at line 1456 of file AEntityFactory.cpp.
References moab::TypeSequenceManager::begin(), moab::TypeSequenceManager::end(), moab::SequenceManager::entity_map(), get_adjacency_ptr(), MBENTITYSET, MBVERTEX, moab::Core::sequence_manager(), moab::SequenceData::size(), and thisMB.
ErrorCode moab::AEntityFactory::get_polyhedron_vertices | ( | const EntityHandle | source_entity, |
std::vector< EntityHandle > & | target_entities | ||
) |
get the vertices for a polyhedron (special implementation because for polyhedra connectivity array stores faces)
Definition at line 138 of file AEntityFactory.cpp.
References ErrorCode, moab::Core::get_adjacencies(), moab::Core::get_connectivity(), MB_SUCCESS, thisMB, and moab::Interface::UNION.
Referenced by get_adjacencies().
|
private |
Definition at line 1079 of file AEntityFactory.cpp.
References moab::Range::begin(), moab::CREATE_HANDLE(), moab::CN::Dimension(), moab::dum, moab::Range::end(), ErrorCode, moab::Core::get_adjacencies(), get_adjacencies(), moab::Core::get_connectivity(), get_element(), get_zero_to_n_elements(), MB_END_ID, MB_MULTIPLE_ENTITIES_FOUND, MB_START_ID, MB_SUCCESS, MBPOLYGON, thisMB, moab::TYPE_FROM_HANDLE(), moab::CN::TypeDimensionMap, and moab::Interface::UNION.
Referenced by get_adjacencies(), and get_elements().
|
private |
Definition at line 35 of file AEntityFactory.cpp.
References ErrorCode, moab::Core::get_adjacencies(), moab::Core::get_connectivity(), MBPOLYHEDRON, thisMB, and moab::TYPE_FROM_HANDLE().
Referenced by create_vert_elem_adjacencies(), and remove_all_adjacencies().
|
private |
Definition at line 648 of file AEntityFactory.cpp.
References ErrorCode, moab::GeomUtil::first(), moab::FIRST_HANDLE(), get_adjacencies(), get_down_adjacency_elements(), moab::LAST_HANDLE(), MB_SUCCESS, and moab::CN::TypeDimensionMap.
Referenced by get_adjacencies(), get_elements(), and get_up_adjacency_elements().
ErrorCode moab::AEntityFactory::merge_adjust_adjacencies | ( | EntityHandle | entity_to_keep, |
EntityHandle | entity_to_remove | ||
) |
in preparation for merging two entities, adjust adjacencies so that entity_to_keep will be adjacent to the "right" entities after merge (also checks for potential formation of equivalent entities and creates explicit adjacencies accordingly)
Definition at line 1270 of file AEntityFactory.cpp.
References add_adjacency(), moab::Range::begin(), check_equiv_entities(), dim, moab::CN::Dimension(), moab::Range::end(), ErrorCode, explicitly_adjacent(), moab::Core::get_adjacencies(), get_adjacencies(), moab::Core::get_connectivity(), MB_SUCCESS, MBENTITYSET, moab::Core::replace_entities(), moab::Core::set_connectivity(), thisMB, and moab::TYPE_FROM_HANDLE().
ErrorCode moab::AEntityFactory::notify_change_connectivity | ( | EntityHandle | entity, |
const EntityHandle * | old_array, | ||
const EntityHandle * | new_array, | ||
int | number_nodes | ||
) |
calling code notifying that an entity changed its connectivity
Definition at line 1211 of file AEntityFactory.cpp.
References add_adjacency(), ErrorCode, MB_NOT_IMPLEMENTED, MB_SUCCESS, MBPOLYHEDRON, mVertElemAdj, remove_adjacency(), and moab::TYPE_FROM_HANDLE().
ErrorCode moab::AEntityFactory::notify_create_entity | ( | const EntityHandle | entity, |
const EntityHandle * | node_array, | ||
const int | number_nodes | ||
) |
calling code notifying this that to update connectivity of 'entity'
Definition at line 615 of file AEntityFactory.cpp.
References add_adjacency(), ErrorCode, get_adjacencies(), MB_SUCCESS, MBPOLYHEDRON, moab::TYPE_FROM_HANDLE(), and vert_elem_adjacencies().
Referenced by moab::TempestRemapper::ComputeOverlapMesh(), moab::NCHelperDomain::create_mesh(), moab::NCHelperScrip::create_mesh(), moab::ParCommGraph::receive_mesh(), and moab::ReadUtil::update_adjacencies().
ErrorCode moab::AEntityFactory::notify_delete_entity | ( | EntityHandle | entity | ) |
calling code notifying this that an entity is getting deleted
calling code is notifying this that an entity is going to be deleted from the database
Definition at line 1529 of file AEntityFactory.cpp.
References dim, ErrorCode, get_adjacencies(), MB_ENTITY_NOT_FOUND, MB_SUCCESS, MBVERTEX, remove_all_adjacencies(), and moab::TYPE_FROM_HANDLE().
ErrorCode moab::AEntityFactory::remove_adjacency | ( | EntityHandle | base_entity, |
EntityHandle | adjacency_to_remove | ||
) |
remove an adjacency from from the base_entity.
Definition at line 399 of file AEntityFactory.cpp.
References ErrorCode, get_adjacencies(), MB_SUCCESS, MBENTITYSET, moab::Core::remove_entities(), thisMB, and moab::TYPE_FROM_HANDLE().
Referenced by moab::MeshSet::create_adjacencies(), notify_change_connectivity(), moab::range_tool< pair_iter_t >::ranged_remove_entities(), moab::MeshSet::remove_adjacencies(), remove_all_adjacencies(), moab::MeshSet::replace_entities(), moab::vector_remove_range(), moab::vector_remove_ranges(), and moab::vector_remove_vector().
ErrorCode moab::AEntityFactory::remove_all_adjacencies | ( | EntityHandle | base_entity, |
const bool | delete_adj_list = false |
||
) |
remove all adjacencies from from the base_entity.
Definition at line 419 of file AEntityFactory.cpp.
References moab::Core::clear_meshset(), moab::CN::Dimension(), ErrorCode, explicitly_adjacent(), get_adjacencies(), get_vertices(), MB_SUCCESS, MBENTITYSET, MBVERTEX, remove_adjacency(), set_adjacency_ptr(), thisMB, moab::TYPE_FROM_HANDLE(), and vert_elem_adjacencies().
Referenced by notify_delete_entity().
|
private |
Definition at line 1440 of file AEntityFactory.cpp.
References moab::SequenceData::allocate_adjacency_data(), moab::EntitySequence::data(), ErrorCode, moab::SequenceManager::find(), moab::SequenceData::get_adjacency_data(), MB_MEMORY_ALLOCATION_FAILED, MB_SUCCESS, moab::Core::sequence_manager(), moab::SequenceData::start_handle(), and thisMB.
Referenced by get_adjacencies(), and remove_all_adjacencies().
|
inline |
returns whether vertex to element adjacencies are being stored
Definition at line 128 of file AEntityFactory.hpp.
References mVertElemAdj.
Referenced by moab::HigherOrderFactory::center_node_exist(), moab::TempestRemapper::ComputeOverlapMesh(), moab::NCHelperDomain::create_mesh(), moab::NCHelperScrip::create_mesh(), moab::Skinner::find_skin(), notify_create_entity(), moab::ParCommGraph::receive_mesh(), remove_all_adjacencies(), and moab::ReadUtil::update_adjacencies().
|
private |
whether vertex to element adjacencies are begin done
Definition at line 176 of file AEntityFactory.hpp.
Referenced by AEntityFactory(), create_vert_elem_adjacencies(), get_adjacencies(), get_element(), get_elements(), notify_change_connectivity(), and vert_elem_adjacencies().
|
private |
interface associated with this tool
Definition at line 173 of file AEntityFactory.hpp.
Referenced by AEntityFactory(), check_equiv_entities(), create_explicit_adjs(), create_vert_elem_adjacencies(), entities_equivalent(), get_adjacencies(), get_adjacency_ptr(), get_down_adjacency_elements(), get_down_adjacency_elements_poly(), get_element(), get_memory_use(), get_polyhedron_vertices(), get_up_adjacency_elements(), get_vertices(), merge_adjust_adjacencies(), remove_adjacency(), remove_all_adjacencies(), set_adjacency_ptr(), and ~AEntityFactory().