MOAB: Mesh Oriented datABase  (version 5.0.1)
moab::Interface Class Reference

Main interface class to MOAB. More...

#include <moab/Interface.hpp>

+ Inheritance diagram for moab::Interface:
+ Collaboration diagram for moab::Interface:

Classes

class  HONodeAddedRemoved
 function object for recieving events from MB of higher order nodes added to entities More...

Public Types

enum  { INTERSECT, UNION }
 Enumerated type used in get_adjacencies() and other functions. More...

Interface

 Interface ()
 constructor
virtual ~Interface ()
 destructor
virtual EntityHandle get_root_set ()=0
 return the entity set representing the whole mesh
virtual ErrorCode query_interface_type (const std::type_info &iface_type, void *&iface)=0
template<class IFace >
ErrorCode query_interface (IFace *&ptr)
virtual ErrorCode release_interface_type (const std::type_info &iface_type, void *iface)=0
 Release reference to MB interface.
template<class IFace >
ErrorCode release_interface (IFace *interface)
 constructor
virtual float api_version (std::string *version_string=NULL)
 Release reference to MB interface.
virtual float impl_version (std::string *version_string=NULL)=0
 Returns the major.minor version number of the implementation.

Type and id

virtual EntityType type_from_handle (const EntityHandle handle) const =0
 Returns the entity type of an EntityHandle.
virtual EntityID id_from_handle (const EntityHandle handle) const =0
 Returns the id from an EntityHandle.
virtual int dimension_from_handle (const EntityHandle handle) const =0
 Returns the topological dimension of an entity.
virtual ErrorCode handle_from_id (const EntityType type, const EntityID, EntityHandle &handle) const =0
 Gets an entity handle from the data base, if it exists, according to type and id.

Mesh input/output

virtual ErrorCode load_mesh (const char *file_name, const int *active_block_id_list=NULL, const int num_blocks=0)=0
 Loads a mesh file into the database.
virtual ErrorCode load_file (const char *file_name, const EntityHandle *file_set=0, const char *options=0, const char *set_tag_name=0, const int *set_tag_values=0, int num_set_tag_values=0)=0
 Load or import a file.
virtual ErrorCode write_mesh (const char *file_name, const EntityHandle *output_list=NULL, const int num_sets=0)=0
 Writes mesh to a file.
virtual ErrorCode write_file (const char *file_name, const char *file_type=0, const char *options=0, const EntityHandle *output_sets=0, int num_output_sets=0, const Tag *tag_list=0, int num_tags=0)=0
 Write or export a file.
virtual ErrorCode write_file (const char *file_name, const char *file_type, const char *options, const Range &output_sets, const Tag *tag_list=0, int num_tags=0)=0
 Write or export a file.
virtual ErrorCode delete_mesh ()=0
 Deletes all mesh entities from this MB instance.

Coordinates and dimensions

virtual ErrorCode get_vertex_coordinates (std::vector< double > &coords) const =0
 Get blocked vertex coordinates for all vertices.
virtual ErrorCode coords_iterate (Range::const_iterator iter, Range::const_iterator end, double *&xcoords_ptr, double *&ycoords_ptr, double *&zcoords_ptr, int &count)=0
 get pointers to coordinate data
virtual ErrorCode get_coords (const Range &entity_handles, double *coords) const =0
 Gets xyz coordinate information for range of vertices.
virtual ErrorCode get_coords (const EntityHandle *entity_handles, const int num_entities, double *coords) const =0
 Gets xyz coordinate information for vector of vertices.
virtual ErrorCode get_coords (const Range &entity_handles, double *x_coords, double *y_coords, double *z_coords) const =0
 Get vertex coordinates in blocks by dimension.
virtual ErrorCode set_coords (const EntityHandle *entity_handles, const int num_entities, const double *coords)=0
 Sets the xyz coordinates for a vector of vertices.
virtual ErrorCode set_coords (Range entity_handles, const double *coords)=0
 Sets the xyz coordinates for a vector of vertices.
virtual ErrorCode get_dimension (int &dim) const =0
 Get overall geometric dimension.
virtual ErrorCode set_dimension (const int dim)=0
 Set overall geometric dimension.

Connectivity

virtual ErrorCode connect_iterate (Range::const_iterator iter, Range::const_iterator end, EntityHandle *&connect, int &verts_per_entity, int &count)=0
 get pointers to connectivity data
virtual ErrorCode get_connectivity_by_type (const EntityType type, std::vector< EntityHandle > &connect) const =0
 Get the connectivity array for all entities of the specified entity type.
virtual ErrorCode get_connectivity (const EntityHandle *entity_handles, const int num_handles, Range &connectivity, bool corners_only=false) const =0
 Gets the connectivity for a vector of elements.
virtual ErrorCode get_connectivity (const Range &entity_handles, Range &connectivity, bool corners_only=false) const =0
 Gets the connectivity for elements.
virtual ErrorCode get_connectivity (const EntityHandle *entity_handles, const int num_handles, std::vector< EntityHandle > &connectivity, bool corners_only=false, std::vector< int > *offsets=NULL) const =0
 Gets the connectivity for a vector of elements.
virtual ErrorCode get_connectivity (const EntityHandle entity_handle, const EntityHandle *&connectivity, int &num_nodes, bool corners_only=false, std::vector< EntityHandle > *storage=0) const =0
 Gets a pointer to constant connectivity data of entity_handle
virtual ErrorCode set_connectivity (const EntityHandle entity_handle, EntityHandle *connect, const int num_connect)=0
 Sets the connectivity for an EntityHandle. For non-element handles, return an error.

Adjacencies

virtual ErrorCode get_adjacencies (const EntityHandle *from_entities, const int num_entities, const int to_dimension, const bool create_if_missing, std::vector< EntityHandle > &adj_entities, const int operation_type=Interface::INTERSECT)=0
 Get the adjacencies associated with a vector of entities to entities of a specfied dimension.
virtual ErrorCode get_adjacencies (const EntityHandle *from_entities, const int num_entities, const int to_dimension, const bool create_if_missing, Range &adj_entities, const int operation_type=Interface::INTERSECT)=0
 Get the adjacencies associated with a vector of entities to entities of a specfied dimension.
virtual ErrorCode get_adjacencies (const Range &from_entities, const int to_dimension, const bool create_if_missing, Range &adj_entities, const int operation_type=Interface::INTERSECT)=0
 Get the adjacencies associated with a range of entities to entities of a specfied dimension.
virtual ErrorCode add_adjacencies (const EntityHandle from_handle, const EntityHandle *to_handles, const int num_handles, bool both_ways)=0
 Adds adjacencies between "from" and "to" entities.
virtual ErrorCode add_adjacencies (const EntityHandle from_handle, Range &adjacencies, bool both_ways)=0
 Adds adjacencies; same as vector-based, but with range instead.
virtual ErrorCode remove_adjacencies (const EntityHandle from_handle, const EntityHandle *to_handles, const int num_handles)=0
 Removes adjacencies between handles.
virtual ErrorCode adjacencies_iterate (Range::const_iterator iter, Range::const_iterator end, const std::vector< EntityHandle > **&adjs_ptr, int &count)=0
 Get a ptr to adjacency lists Get a pointer to adjacency lists. These lists are std::vector<EntityHandle>, which are pointed to by adjs[i]. Adjacencies are not guaranteed to be in order of increasing dimension. Only a const version of this function is given, because adjacency data is managed more carefully in MOAB and should be treated as read-only by applications. If adjacencies have not yet been initialized, adjs_ptr will be NULL (i.e. adjs_ptr == NULL). There may also be NULL entries for individual entities, i.e. adjs_ptr[i] == NULL.

Getting entities

virtual ErrorCode get_entities_by_dimension (const EntityHandle meshset, const int dimension, Range &entities, const bool recursive=false) const =0
 Retrieves all entities of a given topological dimension in the database or meshset.
virtual ErrorCode get_entities_by_dimension (const EntityHandle meshset, const int dimension, std::vector< EntityHandle > &entities, const bool recursive=false) const =0
 Retrieves all entities of a given topological dimension in the database or meshset.
virtual ErrorCode get_entities_by_type (const EntityHandle meshset, const EntityType type, Range &entities, const bool recursive=false) const =0
 Retrieve all entities of a given type in the database or meshset.
virtual ErrorCode get_entities_by_type (const EntityHandle meshset, const EntityType type, std::vector< EntityHandle > &entities, const bool recursive=false) const =0
 Retrieve all entities of a given type in the database or meshset.
virtual ErrorCode get_entities_by_type_and_tag (const EntityHandle meshset, const EntityType type, const Tag *tag_handles, const void *const *values, const int num_tags, Range &entities, const int condition=Interface::INTERSECT, const bool recursive=false) const =0
virtual ErrorCode get_entities_by_handle (const EntityHandle meshset, Range &entities, const bool recursive=false) const =0
 Returns all entities in the data base or meshset, in a range (order not preserved)
virtual ErrorCode get_entities_by_handle (const EntityHandle meshset, std::vector< EntityHandle > &entities, const bool recursive=false) const =0
 Returns all entities in the data base or meshset, in a vector (order preserved)
virtual ErrorCode get_number_entities_by_dimension (const EntityHandle meshset, const int dimension, int &num_entities, const bool recursive=false) const =0
 Return the number of entities of given dimension in the database or meshset.
virtual ErrorCode get_number_entities_by_type (const EntityHandle meshset, const EntityType type, int &num_entities, const bool recursive=false) const =0
 Retrieve the number of entities of a given type in the database or meshset.
virtual ErrorCode get_number_entities_by_type_and_tag (const EntityHandle meshset, const EntityType type, const Tag *tag_handles, const void *const *values, const int num_tags, int &num_entities, const int condition=Interface::INTERSECT, const bool recursive=false) const =0
virtual ErrorCode get_number_entities_by_handle (const EntityHandle meshset, int &num_entities, const bool recursive=false) const =0
 Returns number of entities in the data base or meshset.

Mesh modification

virtual ErrorCode create_element (const EntityType type, const EntityHandle *connectivity, const int num_vertices, EntityHandle &element_handle)=0
 Create an element based on the type and connectivity.
virtual ErrorCode create_vertex (const double coordinates[3], EntityHandle &entity_handle)=0
 Creates a vertex with the specified coordinates.
virtual ErrorCode create_vertices (const double *coordinates, const int nverts, Range &entity_handles)=0
 Create a set of vertices with the specified coordinates.
virtual ErrorCode merge_entities (EntityHandle entity_to_keep, EntityHandle entity_to_remove, bool auto_merge, bool delete_removed_entity)=0
 Merge two entities into a single entity.
virtual ErrorCode delete_entities (const EntityHandle *entities, const int num_entities)=0
 Removes entities in a vector from the data base.
virtual ErrorCode delete_entities (const Range &entities)=0
 Removes entities in a range from the data base.

Information

virtual ErrorCode list_entities (const Range &entities) const =0
 List entities to standard output.
virtual ErrorCode list_entities (const EntityHandle *entities, const int num_entities) const =0
 List entities, or number of entities in database, to standard output.
virtual ErrorCode list_entity (const EntityHandle entity) const =0
 List a single entity; no header printed.
virtual ErrorCode get_last_error (std::string &info) const =0
 Return information about the last error.
virtual std::string get_error_string (const ErrorCode code) const =0
 Return string representation of given error code.
virtual void estimated_memory_use (const EntityHandle *ent_array=0, unsigned long num_ents=0, unsigned long long *total_storage=0, unsigned long long *total_amortized_storage=0, unsigned long long *entity_storage=0, unsigned long long *amortized_entity_storage=0, unsigned long long *adjacency_storage=0, unsigned long long *amortized_adjacency_storage=0, const Tag *tag_array=0, unsigned num_tags=0, unsigned long long *tag_storage=0, unsigned long long *amortized_tag_storage=0)=0
 Calculate amount of memory used to store MOAB data.
virtual void estimated_memory_use (const Range &ents, unsigned long long *total_storage=0, unsigned long long *total_amortized_storage=0, unsigned long long *entity_storage=0, unsigned long long *amortized_entity_storage=0, unsigned long long *adjacency_storage=0, unsigned long long *amortized_adjacency_storage=0, const Tag *tag_array=0, unsigned num_tags=0, unsigned long long *tag_storage=0, unsigned long long *amortized_tag_storage=0)=0
 Calculate amount of memory used to store MOAB data.

Higher-order elements

virtual ErrorCode convert_entities (const EntityHandle meshset, const bool mid_edge, const bool mid_face, const bool mid_region, HONodeAddedRemoved *function_object=0)=0
 Convert entities to higher-order elements by adding mid nodes.
virtual ErrorCode side_number (const EntityHandle parent, const EntityHandle child, int &side_number, int &sense, int &offset) const =0
 Returns the side number, in canonical ordering, of child with respect to parent
virtual ErrorCode high_order_node (const EntityHandle parent_handle, const EntityHandle *subfacet_conn, const EntityType subfacet_type, EntityHandle &high_order_node) const =0
 Find the higher-order node on a subfacet of an entity.
virtual ErrorCode side_element (const EntityHandle source_entity, const int dim, const int side_number, EntityHandle &target_entity) const =0
 Return the handle of the side element of a given dimension and index.

Tags

virtual ErrorCode tag_get_handle (const char *name, int size, DataType type, Tag &tag_handle, unsigned flags=0, const void *default_value=0, bool *created=0)=0
 Get a tag handle, possibly creating the tag.
virtual ErrorCode tag_get_handle (const char *name, int size, DataType type, Tag &tag_handle, unsigned flags=0, const void *default_value=0) const =0
 same as non-const version, except that MB_TAG_CREAT flag is ignored.
virtual ErrorCode tag_get_name (const Tag tag_handle, std::string &tag_name) const =0
 Get the name of a tag corresponding to a handle.
virtual ErrorCode tag_get_handle (const char *tag_name, Tag &tag_handle) const =0
 Gets the tag handle corresponding to a name.
virtual ErrorCode tag_get_bytes (const Tag tag, int &bytes_per_tag) const =0
 Get the size of the specified tag in bytes.
virtual ErrorCode tag_get_length (const Tag tag, int &length) const =0
 Get the array length of a tag.
virtual ErrorCode tag_get_type (const Tag tag, TagType &tag_type) const =0
 Get the type of the specified tag.
virtual ErrorCode tag_get_data_type (const Tag tag, DataType &type) const =0
 Get data type of tag.
virtual ErrorCode tag_get_default_value (const Tag tag, void *def_val) const =0
 Get the default value of the specified tag.
virtual ErrorCode tag_get_default_value (Tag tag, const void *&def_val, int &size) const =0
 Get a tag handle, possibly creating the tag.
virtual ErrorCode tag_get_tags (std::vector< Tag > &tag_handles) const =0
 Get handles for all tags defined in the mesh instance.
virtual ErrorCode tag_get_tags_on_entity (const EntityHandle entity, std::vector< Tag > &tag_handles) const =0
 Get handles for all tags defined on this entity.
virtual ErrorCode tag_get_data (const Tag tag_handle, const EntityHandle *entity_handles, int num_entities, void *tag_data) const =0
 Get the value of the indicated tag on the specified entities in the specified vector.
virtual ErrorCode tag_get_data (const Tag tag_handle, const Range &entity_handles, void *tag_data) const =0
 Get the value of the indicated tag on the specified entities in the specified range.
virtual ErrorCode tag_set_data (Tag tag_handle, const EntityHandle *entity_handles, int num_entities, const void *tag_data)=0
 Set the value of the indicated tag on the specified entities in the specified vector.
virtual ErrorCode tag_set_data (Tag tag_handle, const Range &entity_handles, const void *tag_data)=0
 Set the value of the indicated tag on the specified entities in the specified range.
virtual ErrorCode tag_get_by_ptr (const Tag tag_handle, const EntityHandle *entity_handles, int num_entities, const void **tag_data, int *tag_sizes=0) const =0
 Get pointers to tag data.
virtual ErrorCode tag_get_by_ptr (const Tag tag_handle, const Range &entity_handles, const void **tag_data, int *tag_sizes=0) const =0
 Get pointers to tag data.
virtual ErrorCode tag_set_by_ptr (Tag tag_handle, const EntityHandle *entity_handles, int num_entities, void const *const *tag_data, const int *tag_sizes=0)=0
 Set tag data given an array of pointers to tag values.
virtual ErrorCode tag_set_by_ptr (Tag tag_handle, const Range &entity_handles, void const *const *tag_data, const int *tag_sizes=0)=0
 Set tag data given an array of pointers to tag values.
virtual ErrorCode tag_clear_data (Tag tag_handle, const Range &entity_handles, const void *value, int value_size=0)=0
 Set tag data given value.
virtual ErrorCode tag_clear_data (Tag tag_handle, const EntityHandle *entity_handles, int num_entity_handles, const void *value, int value_size=0)=0
 Set tag data given value.
virtual ErrorCode tag_delete_data (Tag tag_handle, const EntityHandle *entity_handles, int num_handles)=0
 Delete the data of a vector of entity handles and sparse tag.
virtual ErrorCode tag_delete_data (Tag tag_handle, const Range &entity_range)=0
 Delete the data of a range of entity handles and sparse tag.
virtual ErrorCode tag_iterate (Tag tag_handle, Range::const_iterator begin, Range::const_iterator end, int &count, void *&data_ptr, bool allocate=true)=0
 Access tag data via direct pointer into contiguous blocks.
virtual ErrorCode tag_delete (Tag tag_handle)=0
 Remove a tag from the database and delete all of its associated data.

Sets

virtual ErrorCode create_meshset (const unsigned int options, EntityHandle &ms_handle, int start_id=0)=0
 Create a new mesh set.
virtual ErrorCode clear_meshset (const EntityHandle *ms_handles, const int num_meshsets)=0
 Empty a vector of mesh set.
virtual ErrorCode clear_meshset (const Range &ms_handles)=0
 Empty a range of mesh set.
virtual ErrorCode get_meshset_options (const EntityHandle ms_handle, unsigned int &options) const =0
 Get the options of a mesh set.
virtual ErrorCode set_meshset_options (const EntityHandle ms_handle, const unsigned int options)=0
 Set the options of a mesh set.
virtual ErrorCode subtract_meshset (EntityHandle meshset1, const EntityHandle meshset2)=0
 Subtract meshsets.
virtual ErrorCode intersect_meshset (EntityHandle meshset1, const EntityHandle meshset2)=0
 Intersect meshsets.
virtual ErrorCode unite_meshset (EntityHandle meshset1, const EntityHandle meshset2)=0
 Unite meshsets.
virtual ErrorCode add_entities (EntityHandle meshset, const Range &entities)=0
 Add to a meshset entities in specified range.
virtual ErrorCode add_entities (EntityHandle meshset, const EntityHandle *entities, const int num_entities)=0
 Add to a meshset entities in specified vector.
virtual ErrorCode remove_entities (EntityHandle meshset, const Range &entities)=0
 Remove from a meshset entities in specified range.
virtual ErrorCode remove_entities (EntityHandle meshset, const EntityHandle *entities, const int num_entities)=0
 Remove from a meshset entities in specified vector.
virtual bool contains_entities (EntityHandle meshset, const EntityHandle *entities, int num_entities, const int operation_type=Interface::INTERSECT)=0
 Return whether a set contains entities.
virtual ErrorCode replace_entities (EntityHandle meshset, const EntityHandle *old_entities, const EntityHandle *new_entities, int num_entities)=0
 Replace entities in a set with other entities.

Set parents/children

virtual ErrorCode get_parent_meshsets (const EntityHandle meshset, std::vector< EntityHandle > &parents, const int num_hops=1) const =0
 Get parent mesh sets of a mesh set.
virtual ErrorCode get_parent_meshsets (const EntityHandle meshset, Range &parents, const int num_hops=1) const =0
 Get parent mesh sets of a mesh set.
virtual ErrorCode get_child_meshsets (const EntityHandle meshset, std::vector< EntityHandle > &children, const int num_hops=1) const =0
 Get child mesh sets of a mesh set.
virtual ErrorCode get_child_meshsets (const EntityHandle meshset, Range &children, const int num_hops=1) const =0
 Get child mesh sets of a mesh set.
virtual ErrorCode get_contained_meshsets (const EntityHandle meshset, std::vector< EntityHandle > &contained, const int num_hops=1) const =0
 Get mesh sets contained in a mesh set.
virtual ErrorCode get_contained_meshsets (const EntityHandle meshset, Range &contained, const int num_hops=1) const =0
 Get mesh sets contained in a mesh set.
virtual ErrorCode num_parent_meshsets (const EntityHandle meshset, int *number, const int num_hops=1) const =0
 Get the number of parent mesh sets of a mesh set.
virtual ErrorCode num_child_meshsets (const EntityHandle meshset, int *number, const int num_hops=1) const =0
 Get the number of child mesh sets of a mesh set.
virtual ErrorCode num_contained_meshsets (const EntityHandle meshset, int *number, const int num_hops=1) const =0
 Get the number of mesh sets contained in a mesh set.
virtual ErrorCode add_parent_meshset (EntityHandle child_meshset, const EntityHandle parent_meshset)=0
 Add a parent mesh set to a mesh set.
virtual ErrorCode add_parent_meshsets (EntityHandle child_meshset, const EntityHandle *parent_meshsets, int num_parent_meshsets)=0
 Add a parent mesh sets to a mesh set.
virtual ErrorCode add_child_meshset (EntityHandle parent_meshset, const EntityHandle child_meshset)=0
 Add a child mesh set to a mesh set.
virtual ErrorCode add_child_meshsets (EntityHandle parent_meshset, const EntityHandle *child_meshsets, int num_child_meshsets)=0
 Add a child mesh sets to a mesh set.
virtual ErrorCode add_parent_child (EntityHandle parent, EntityHandle child)=0
 Add parent and child links between mesh sets.
virtual ErrorCode remove_parent_child (EntityHandle parent, EntityHandle child)=0
 Remove parent and child links between mesh sets.
virtual ErrorCode remove_parent_meshset (EntityHandle child_meshset, const EntityHandle parent_meshset)=0
 Remove a parent mesh set from a mesh set.
virtual ErrorCode remove_child_meshset (EntityHandle parent_meshset, const EntityHandle child_meshset)=0
 Remove a child mesh set from a mesh set.

Set iterators

virtual ErrorCode create_set_iterator (EntityHandle meshset, EntityType ent_type, int ent_dim, int chunk_size, bool check_valid, SetIterator *&set_iter)=0
 Create an iterator over the set Create a new iterator that iterates over entities with the specified type or dimension. Only one of ent_type or dim can be set; use dim=-1 or ent_type=MBMAXTYPE for the other. Iterators for list-type (ordered) sets are stable over set modification, unless entity removed or deleted is the one at the current position of the iterator. If the check_valid parameter is passed as true, entities are checked for validity before being passed back by get_next_entities function (checking entity validity can have a non-negligible cost).

Sequence Option controllers

virtual double get_sequence_multiplier () const =0
 Interface to control memory allocation for sequences Provide a factor that controls the size of the sequence that gets allocated. This is typically useful in the parallel setting when a-priori, the number of ghost entities and the memory required for them within the same sequence as the owned entities are unknown. The default factor is 1.0 but this can be appropriately updated at runtime so that we do not have broken sequences.
virtual void set_sequence_multiplier (double factor)=0
 Interface to control memory allocation for sequences Provide a factor that controls the size of the sequence that gets allocated. This is typically useful in the parallel setting when a-priori, the number of ghost entities and the memory required for them within the same sequence as the owned entities are unknown. The default factor is 1.0 but this can be appropriately updated at runtime so that we do not have broken sequences.

Detailed Description


Member Enumeration Documentation

anonymous enum

Enumerated type used in get_adjacencies() and other functions.

Enumerator:
INTERSECT 
UNION 

Definition at line 700 of file Interface.hpp.


Constructor & Destructor Documentation

constructor

Definition at line 105 of file Interface.hpp.

{}
virtual moab::Interface::~Interface ( ) [inline, virtual]

destructor

Definition at line 108 of file Interface.hpp.

{}

Member Function Documentation

virtual ErrorCode moab::Interface::add_adjacencies ( const EntityHandle  from_handle,
const EntityHandle to_handles,
const int  num_handles,
bool  both_ways 
) [pure virtual]

Adds adjacencies between "from" and "to" entities.

Parameters:
from_handleEntities on which the adjacencies are placed
to_handlesVector of entities referenced by new adjacencies added to from_handle
num_handlesNumber of entities in to_handles
both_waysIf true, add the adjacency information in both directions; if false, adjacencies are added only to from_handle

Referenced by moab::DualTool::check_dual_equiv_edges(), make_atomic_pillow(), make_chord_push(), mb_forced_adjacencies_test(), moab::ReadHDF5::read_adjacencies(), moab::MeshTopoUtil::split_entities_manifold(), moab::MeshTopoUtil::split_entity_nonmanifold(), and test_read_adjacencies().

virtual ErrorCode moab::Interface::add_adjacencies ( const EntityHandle  from_handle,
Range adjacencies,
bool  both_ways 
) [pure virtual]

Adds adjacencies; same as vector-based, but with range instead.

virtual ErrorCode moab::Interface::add_child_meshset ( EntityHandle  parent_meshset,
const EntityHandle  child_meshset 
) [pure virtual]

Add a child mesh set to a mesh set.

Make child_meshset a new child of parent_meshset. This function does not add a corresponding parent link to child_meshset.

Parameters:
parent_meshsetThe parent mesh set being given a new child.
child_meshsetThe child being added to parent_meshset

Implemented in moab::Core.

Referenced by moab::OrientedBoxTreeTool::build_sets(), moab::OrientedBoxTreeTool::build_tree(), moab::BVHTree::convert_tree(), create(), mb_mesh_set_parent_child_test(), mb_root_set_test(), moab::BSPTree::split_leaf(), moab::AdaptiveKDTree::split_leaf(), test_gather_sets_common(), test_gather_sets_ranged(), test_subset(), and moab::ParallelComm::unpack_sets().

virtual ErrorCode moab::Interface::add_child_meshsets ( EntityHandle  parent_meshset,
const EntityHandle child_meshsets,
int  num_child_meshsets 
) [pure virtual]

Add a child mesh sets to a mesh set.

Make child_meshset a new child of parent_meshset. This function does not add a corresponding parent link to child_meshset.

Parameters:
parent_meshsetThe parent mesh set being given a new child.
child_meshsetThe child being added to parent_meshset

Implemented in moab::Core.

Referenced by mb_root_set_test(), and moab::ReadHDF5::read_set_data().

virtual ErrorCode moab::Interface::add_entities ( EntityHandle  meshset,
const Range entities 
) [pure virtual]

Add to a meshset entities in specified range.

Add to a meshset entities in specified range. If meshset has MESHSET_TRACK_OWNER option set, adjacencies are also added to entities in entities.

Parameters:
meshsetMesh set being added to
entitiesRange of entities being added to meshset

Implemented in moab::Core.

Referenced by add_dead_elems_to_impl_compl(), moab::ReadABAQUS::add_entity_set(), moab::GeomTopoTool::add_geo_set(), MetisPartitioner::assemble_taggedents_graph(), moab::ParallelComm::assign_entities_part(), moab::ParallelComm::augment_default_sets_with_ghosts(), moab::MeshGeneration::BrickInstance(), build_cube(), moab::ReadRTT::build_moab(), moab::AdaptiveKDTree::build_tree(), moab::BVHTree::build_tree(), moab::OrientedBoxTreeTool::build_tree(), build_tree(), moab::FBEngine::chain_two_edges(), moab::ParallelComm::check_clean_iface(), moab::Skinner::classify_2d_boundary(), moab::ScdInterface::construct_box(), moab::GeomTopoTool::construct_obb_tree(), moab::BVHTree::convert_tree(), moab::TempestRemapper::ConvertTempestMeshToMOAB_Private(), create_coarse_mesh(), moab::ReadCGM::create_curve_facets(), moab::ReadIDEAS::create_elements(), moab::ReadMCNP5::create_elements(), create_fine_mesh(), moab::NCHelperMPAS::create_gather_set_cells(), moab::NCHelperGCRM::create_gather_set_edges(), moab::NCHelperMPAS::create_gather_set_edges(), moab::NCHelperGCRM::create_gather_set_vertices(), moab::NCHelperMPAS::create_gather_set_vertices(), create_input_file(), moab::ReadABAQUS::create_instance_of_part(), create_int_ents(), moab::ParallelComm::create_interface_sets(), create_lagr_mesh(), moab::ReadNASTRAN::create_materials(), moab::NCHelperHOMME::create_mesh(), create_mesh(), moab::ScdNCHelper::create_mesh(), moab::FBEngine::create_new_gedge(), moab::NCHelperGCRM::create_padded_gather_set_cells(), moab::NCHelperMPAS::create_padded_gather_set_cells(), moab::ParallelComm::create_part(), moab::ScdInterface::create_scd_sequence(), moab::ReadCGNS::create_sets(), moab::ReadGmsh::create_sets(), moab::ReadTemplate::create_sets(), create_shell_test(), moab::create_span_quads(), moab::ReadCGM::create_surface_facets(), moab::ReadCGM::create_vertices(), moab::ReadMCNP5::create_vertices(), moab::deep_copy_set(), moab::deep_copy_set_with_quads(), do_file(), moab::GeomTopoTool::duplicate_model(), moab::enforce_convexity(), moab::ParallelComm::exchange_ghost_cells(), moab::Skinner::find_skin(), moab::Intx2MeshInPlane::findNodes(), moab::Intx2MeshOnSphere::findNodes(), moab::IntxRllCssphere::findNodes(), moab::fix_degenerate_quads(), fix_surface_senses(), moab::GeomTopoTool::geometrize_surface_set(), iMOAB_CreateElements(), iMOAB_CreateVertices(), ZoltanPartitioner::include_closure(), moab::ReadTemplate::load_file(), moab::ReadCCMIO::load_file(), moab::ReadParallel::load_file(), moab::ReadNC::load_file(), moab::ReadOBJ::load_file(), moab::ReadSms::load_file_impl(), main(), make_set(), manufacture_lagrange_mesh_on_sphere(), mb_merge_update_test(), mb_mesh_set_appends(), mb_mesh_set_flag_test(), mb_mesh_set_list_replace_test(), mb_mesh_set_set_add_remove_test(), mb_mesh_set_set_replace_test(), mb_mesh_sets_test(), mb_root_set_test(), mb_skin_fileset_test(), mb_temporary_test(), mb_type_is_maxtype_test(), mb_write_mesh_test(), moab::BSPTree::merge_leaf(), moab::AdaptiveKDTree::merge_leaf(), moab::DualTool::order_chord(), overlap_write_geometry(), parallel_create_mesh(), process_partition_file(), moab::Tqdcfr::process_sideset_10(), moab::Tqdcfr::process_sideset_11(), moab::Tqdcfr::put_into_set(), quads_to_tris(), moab::ReadTetGen::read_elem_file(), moab::ReadABAQUS::read_element_list(), moab::ReadABAQUS::read_element_set(), moab::ReadNCDF::read_elements(), moab::Tqdcfr::read_elements(), moab::ReadCCMIO::read_faces(), moab::ReadCCMIO::read_gids_and_types(), moab::ReadABAQUS::read_node_list(), moab::ReadABAQUS::read_node_set(), moab::Tqdcfr::read_nodes(), moab::ReadNCDF::read_nodesets(), moab::ReadHDF5::read_set_data(), moab::ReadNCDF::read_sidesets(), moab::ParCommGraph::receive_mesh(), recursive_build_tree(), regression_insert_set_1(), replace_faceted_cgm_surfs(), replace_surface(), resolve_and_exchange(), moab::ParallelComm::resolve_shared_ents(), moab::FBEngine::separate(), moab::ParallelComm::set_partitioning(), moab::ReadRTT::setup_group_data(), moab::FBEngine::split_bedge_at_new_mesh_node(), moab::FBEngine::split_edge_at_mesh_node(), moab::BSPTree::split_leaf(), moab::AdaptiveKDTree::split_leaf(), moab::FBEngine::split_quads(), moab::FBEngine::split_surface(), moab::ReadCGM::store_group_content(), summarize_cell_volume_change(), test_gather_sets_common(), test_gather_sets_ranged(), test_get_by_tag(), test_get_by_tag_value(), test_list_set_with_stale_handles(), test_multiple_files(), test_ranged_set_with_stale_handles(), test_read_adjacencies(), test_read_nodes_common(), test_read_nothing_common(), test_read_one_set_polyhedra(), test_read_set_sets(), test_read_sides(), test_set_flags(), test_subset(), test_write_unbalanced(), moab::DualTool::traverse_hyperplane(), moab::ParallelComm::unpack_sets(), moab::FBEngine::weave_lateral_face_from_edges(), MetisPartitioner::write_aggregationtag_partition(), moab::WriteNCDF::write_file(), write_geometry(), MetisPartitioner::write_partition(), and ZoltanPartitioner::write_partition().

virtual ErrorCode moab::Interface::add_entities ( EntityHandle  meshset,
const EntityHandle entities,
const int  num_entities 
) [pure virtual]

Add to a meshset entities in specified vector.

Add to a meshset entities in specified vector. If meshset has MESHSET_TRACK_OWNER option set, adjacencies are also added to entities in entities.

Parameters:
meshsetMesh set being added to
entities1d vector of entities being added to meshset
num_entitiesNumber of entities in 1d vector

Implemented in moab::Core.

virtual ErrorCode moab::Interface::add_parent_meshset ( EntityHandle  child_meshset,
const EntityHandle  parent_meshset 
) [pure virtual]

Add a parent mesh set to a mesh set.

Make parent_meshset a new parent of child_meshset. This function does not add a corresponding child link to parent_meshset.

Parameters:
child_meshsetThe child mesh set being given a new parent.
parent_meshsetThe parent being added to child_meshset

Implemented in moab::Core.

Referenced by create(), mb_mesh_set_parent_child_test(), mb_root_set_test(), and moab::ParallelComm::unpack_sets().

virtual ErrorCode moab::Interface::add_parent_meshsets ( EntityHandle  child_meshset,
const EntityHandle parent_meshsets,
int  num_parent_meshsets 
) [pure virtual]

Add a parent mesh sets to a mesh set.

Make parent_meshset a new parent of child_meshset. This function does not add a corresponding child link to parent_meshset.

Parameters:
child_meshsetThe child mesh set being given a new parent.
parent_meshsetThe parent being added to child_meshset

Implemented in moab::Core.

Referenced by mb_root_set_test(), and moab::ReadHDF5::read_set_data().

virtual ErrorCode moab::Interface::adjacencies_iterate ( Range::const_iterator  iter,
Range::const_iterator  end,
const std::vector< EntityHandle > **&  adjs_ptr,
int &  count 
) [pure virtual]

Get a ptr to adjacency lists Get a pointer to adjacency lists. These lists are std::vector<EntityHandle>, which are pointed to by adjs[i]. Adjacencies are not guaranteed to be in order of increasing dimension. Only a const version of this function is given, because adjacency data is managed more carefully in MOAB and should be treated as read-only by applications. If adjacencies have not yet been initialized, adjs_ptr will be NULL (i.e. adjs_ptr == NULL). There may also be NULL entries for individual entities, i.e. adjs_ptr[i] == NULL.

Parameters:
iterIterator to beginning of entity range desired
endEnd iterator for which adjacencies are requested
adjs_ptrPointer to pointer to const std::vector<EntityHandle>; each member of that array is the vector of adjacencies for this entity
countNumber of entities in the contiguous chunk starting from *iter

Implemented in moab::Core.

Examples:
DirectAccessNoHoles.cpp, and DirectAccessWithHoles.cpp.

Referenced by main(), and query_vert_to_elem_direct().

float moab::Interface::api_version ( std::string *  version_string = NULL) [inline, virtual]

Release reference to MB interface.

Returns the major.minor version number of the interface

Parameters:
version_stringIf non-NULL, will be filled in with a string, possibly containing implementation-specific information

Definition at line 2098 of file Interface.hpp.

References MOAB_API_VERSION, and MOAB_API_VERSION_STRING.

{
  if (NULL != version_string)
    *version_string = std::string("MOAB API version ") + std::string(MOAB_API_VERSION_STRING);
  return MOAB_API_VERSION;
}
virtual ErrorCode moab::Interface::clear_meshset ( const EntityHandle ms_handles,
const int  num_meshsets 
) [pure virtual]
virtual ErrorCode moab::Interface::clear_meshset ( const Range ms_handles) [pure virtual]

Empty a range of mesh set.

Empty a mesh set.

Parameters:
ms_handlesRange of handles of sets being emptied

Implemented in moab::Core.

virtual ErrorCode moab::Interface::connect_iterate ( Range::const_iterator  iter,
Range::const_iterator  end,
EntityHandle *&  connect,
int &  verts_per_entity,
int &  count 
) [pure virtual]

get pointers to connectivity data

BEWARE, THIS GIVES ACCESS TO MOAB'S INTERNAL STORAGE, USE WITH CAUTION! This function returns a pointer to MOAB's internal storage for entity connectivity. For each contiguous sub-range of entities, those entities are guaranteed to have the same number of vertices (since they're in the same ElementSequence). Count is given in terms of entities, not elements of the connectivity array. Access is similar to tag_iterate, see documentation for that function for details about arguments and a coding example.

Parameters:
iterIterator to first entity you want coordinates for
endIterator to last entity you want coordinates for
connectPointer to connectivity storage for these entities
verts_per_entityNumber of vertices per entity in this block of entities
countNumber of entities for which returned pointers are valid/contiguous

Implemented in moab::Core.

Examples:
DirectAccessNoHoles.cpp, and DirectAccessWithHoles.cpp.

Referenced by moab::SpectralMeshTool::convert_to_coarse(), moab::NCHelperHOMME::create_mesh(), smoab::detail::LinearCellConnectivity::LinearCellConnectivity(), main(), smoab::detail::MixedCellConnectivity::MixedCellConnectivity(), query_elem_to_vert_direct(), test_coords_connect_iterate(), test_iterates(), test_scd_invalid(), test_sequences_after_ghosting(), and moab::WriteDamsel::write_entities().

virtual bool moab::Interface::contains_entities ( EntityHandle  meshset,
const EntityHandle entities,
int  num_entities,
const int  operation_type = Interface::INTERSECT 
) [pure virtual]

Return whether a set contains entities.

Return whether a set contains entities. Returns true only if ALL entities are contained

Parameters:
meshsetMesh set being queried
entitiesEntities being queried
num_entitiesNumber of entities
Returns:
bool If true, all entities are contained in set

Implemented in moab::Core.

Referenced by moab::ParallelComm::augment_default_sets_with_ghosts(), moab::GeomTopoTool::check_model(), moab::Intx2Mesh::DetermineOrderedNeighbors(), moab::GeomTopoTool::dimension(), moab::FBEngine::find_vertex_set_for_node(), moab::GeomTopoTool::get_senses(), moab::GeomTopoTool::global_id(), SetIntersectIter< Container >::intersect_with_set(), mb_root_set_test(), moab::numAdjTriInSet(), remove_empty_cgm_surfs_and_vols(), and moab::FBEngine::weave_lateral_face_from_edges().

virtual ErrorCode moab::Interface::convert_entities ( const EntityHandle  meshset,
const bool  mid_edge,
const bool  mid_face,
const bool  mid_region,
HONodeAddedRemoved function_object = 0 
) [pure virtual]

Convert entities to higher-order elements by adding mid nodes.

This function causes MB to create mid-nodes on all edges, faces, and element interiors for all entities in meshset. Higher order nodes appear in an element's connectivity array according to the algorithm described in the documentation for Mesh. If HONodeAddedRemoved function is input, this function is called to notify the application of nodes being added/removed from the mesh.

Parameters:
meshsetThe set of entities being converted
mid_edgeIf true, mid-edge nodes are created
mid_faceIf true, mid-face nodes are created
mid_regionIf true, mid-element nodes are created
function_objectIf non-NULL, the node_added or node_removed functions on this object are called when nodes are added or removed from an entity, respectively

Implemented in moab::Core.

virtual ErrorCode moab::Interface::coords_iterate ( Range::const_iterator  iter,
Range::const_iterator  end,
double *&  xcoords_ptr,
double *&  ycoords_ptr,
double *&  zcoords_ptr,
int &  count 
) [pure virtual]

get pointers to coordinate data

BEWARE, THIS GIVES ACCESS TO MOAB'S INTERNAL STORAGE, USE WITH CAUTION! This function returns pointers to MOAB's internal storage for vertex coordinates. Access is similar to tag_iterate, see documentation for that function for details about arguments and a coding example.

Parameters:
iterIterator to first entity you want coordinates for
endIterator to last entity you want coordinates for
xcoords_ptrPointer to x coordinate storage for these entities
ycoords_ptrPointer to y coordinate storage for these entities
zcoords_ptrPointer to z coordinate storage for these entities
countNumber of entities for which returned pointers are valid/contiguous

Implemented in moab::Core.

Examples:
DirectAccessNoHoles.cpp, and DirectAccessWithHoles.cpp.

Referenced by main(), query_elem_to_vert_direct(), query_vert_to_elem_direct(), test_coords_connect_iterate(), test_iterates(), test_sequences_after_ghosting(), and moab::WriteDamsel::write_vertices().

virtual ErrorCode moab::Interface::create_element ( const EntityType  type,
const EntityHandle connectivity,
const int  num_vertices,
EntityHandle element_handle 
) [pure virtual]

Create an element based on the type and connectivity.

Create a new element in the database. Vertices composing this element must already exist, and connectivity must be specified in canonical order for the given element type. If connectivity vector is not correct for EntityType type (ie, a vector with 3 vertices is passed in to make an MBQUAD), the function returns MB_FAILURE.

Parameters:
typeType of element to create. (MBTET, MBTRI, MBKNIFE, etc.)
connectivity1d vector containing connectivity of element to create.
num_verticesNumber of vertices in element
element_handleHandle representing the newly created element in the database.

Example:

        EntityHandle quad_conn[] = {vertex0, vertex1, vertex2, vertex3};
        EntityHandle quad_handle = 0;
        create_element( MBQUAD, quad_conn, 4, quad_handle ); 

Implemented in moab::Core.

Examples:
ExtrudePoly.cpp.

Referenced by moab::FBEngine::BreakTriangle2(), build_cube(), moab::ReadRTT::build_moab(), build_triangles(), moab::Skinner::classify_2d_boundary(), moab::DualTool::construct_dual_cells(), moab::DualTool::construct_dual_edges(), moab::DualTool::construct_dual_faces(), create(), moab::ReadCCMIO::create_cell_from_faces(), moab::ReadCGM::create_curve_facets(), moab::EntitySource::create_element(), moab::ReadIDEAS::create_elements(), create_input_file(), moab::ReadABAQUS::create_instance_of_part(), create_lagr_mesh(), create_mesh(), moab::ReadOBJ::create_new_face(), moab::FBEngine::create_new_gedge(), create_patch(), create_shared_grid_3d(), create_shell_test(), moab::ReadNCDF::create_sideset_element(), create_simple_grid(), create_simple_mesh(), create_single_entity(), create_some_mesh(), create_structured_quad_mesh(), moab::ReadCGM::create_surface_facets(), moab::ReadOBJ::create_tri_faces(), create_two_hex_full_mesh(), create_unitsq_quads(), create_unitsq_tris(), moab::deep_copy_set(), moab::FBEngine::divide_triangle(), do_test_mode(), moab::enforce_convexity(), moab::Skinner::find_skin_noadj(), moab::Intx2MeshInPlane::findNodes(), moab::Intx2MeshOnSphere::findNodes(), moab::IntxRllCssphere::findNodes(), moab::fix_degenerate_quads(), generate_mesh(), moab::ScdBox::get_adj_edge_or_face(), moab::ReadSms::load_file_impl(), main(), make_atomic_pillow(), make_chord_push(), make_face_shrink(), moab::ReadCCMIO::make_faces(), moab::OrientedBox::make_hex(), make_mesh(), make_triple_chord_push(), make_tris_from_quad(), manufacture_lagrange_mesh_on_sphere(), mb_adjacencies_create_delete_test(), mb_adjacent_create_test(), mb_canon_number_test(), mb_forced_adjacencies_test(), mb_higher_order_test(), mb_merge_update_test(), mb_poly_adjacency_test(), mb_poly_adjacency_test2(), mb_poly_test(), mb_side_number_test(), mb_skin_adjacent_surf_patches(), mb_skin_curve_test_common(), mb_skin_fileset_test(), mb_skin_full_common(), mb_skin_higher_order_faces_common(), mb_skin_higher_order_pyramids(), mb_skin_higher_order_regions_common(), mb_skin_poly_test(), mb_skin_reversed_common(), mb_skin_subset_common(), mb_skin_surface_test_common(), mb_skin_volume_test_common(), mb_split_test(), mb_topo_util_test(), overlap_write_geometry(), parallel_create_mesh(), pent(), moab::ReadNASTRAN::read_element(), moab::ReadNCDF::read_elements(), moab::ReadNCDF::read_polyhedra_faces(), setup_mesh(), moab::MeshTopoUtil::split_entities_manifold(), moab::MeshTopoUtil::split_entity_nonmanifold(), moab::FBEngine::split_internal_edge(), moab::FBEngine::split_quads(), test_gather_sets_common(), test_get_ents_with_default_value(), test_read_adjacencies(), test_read_one_set_polyhedra(), test_read_sides(), test_subset(), test_write_different_element_types(), test_write_free_nodes(), test_write_unbalanced(), testC(), testD(), moab::ParallelComm::unpack_entities(), moab::ReadVtk::vtk_read_polygons(), moab::ReadVtk::vtk_read_unstructured_grid(), moab::FBEngine::weave_lateral_face_from_edges(), and write_geometry().

virtual ErrorCode moab::Interface::create_meshset ( const unsigned int  options,
EntityHandle ms_handle,
int  start_id = 0 
) [pure virtual]

Create a new mesh set.

Create a new mesh set. Meshsets can store entities ordered or unordered. A set can include entities at most once (MESHSET_SET) or more than once. Meshsets can optionally track its members using adjacencies (MESHSET_TRACK_OWNER); if set, entities are deleted from tracking meshsets before being deleted. This adds data to mesh entities, which can be expensive.

Parameters:
optionsOptions bitmask for the new meshset, possible values defined above
ms_handleHandle for the meshset created

Implemented in moab::Core.

Examples:
DeformMeshRemap.cpp, GenLargeMesh.cpp, ReadWriteTest.cpp, and ReduceExchangeTags.cpp.

Referenced by moab::ReadABAQUS::add_entity_set(), ahf_test(), MetisPartitioner::assemble_taggedents_graph(), moab::ParallelComm::augment_default_sets_with_ghosts(), moab::MeshGeneration::BrickInstance(), build_cube(), moab::ReadRTT::build_moab(), build_new_surface(), moab::OrientedBoxTreeTool::build_sets(), moab::OrientedBoxTreeTool::build_tree(), moab::ParallelComm::check_clean_iface(), closedsurface_uref_hirec_convergence_study(), moab::TempestRemapper::ComputeOverlapMesh(), moab::DualTool::construct_new_hyperplane(), moab::ScdInterface::create_box_set(), moab::ReadIDEAS::create_elements(), moab::ReadCGM::create_entity_sets(), moab::ReadRTT::create_group(), moab::ReadCGM::create_group_entsets(), create_input_file(), moab::ParallelComm::create_interface_sets(), moab::ReadNASTRAN::create_materials(), create_mesh(), moab::FBEngine::create_new_gedge(), moab::ReadOBJ::create_new_group(), moab::ReadOBJ::create_new_object(), moab::ParallelComm::create_part(), moab::Tree::create_root(), moab::Tqdcfr::create_set(), moab::ReadCGNS::create_sets(), moab::ReadGmsh::create_sets(), moab::ReadTemplate::create_sets(), create_shell_test(), moab::create_span_quads(), moab::BSPTree::create_tree(), moab::FBEngine::create_volume_with_direction(), moab::GeomTopoTool::duplicate_model(), gather_one_cell_var(), moab::GeomTopoTool::generate_implicit_complement(), moab::ReadRTT::generate_topology(), moab::GeomTopoTool::geometrize_surface_set(), moab::ReadSms::get_set(), iMOAB_CreateElements(), iMOAB_RegisterApplication(), iMOAB_RegisterFortranApplication(), moab::TempestRemapper::initialize(), moab::ReadParallel::load_file(), moab::ReadNC::load_file(), moab::ReadOBJ::load_file(), moab::ReadABAQUS::load_file(), load_meshset_hirec(), moab::ReadMCNP5::load_one_file(), main(), make_set(), manufacture_lagrange_mesh_on_sphere(), mb_merge_update_test(), mb_mesh_set_appends(), mb_mesh_set_flag_test(), mb_mesh_set_list_replace_test(), mb_mesh_set_parent_child_test(), mb_mesh_set_set_add_remove_test(), mb_mesh_set_set_replace_test(), mb_mesh_sets_test(), mb_root_set_test(), mb_skin_fileset_test(), mb_temporary_test(), mb_type_is_maxtype_test(), mb_write_mesh_test(), multiple_loads_of_same_file(), overlap_write_geometry(), parallel_create_mesh(), process_partition_file(), moab::ReadTetGen::read_elem_file(), moab::ReadNCDF::read_elements(), moab::ReadCCMIO::read_faces(), DeformMeshRemap::read_file(), moab::ReadCCMIO::read_gids_and_types(), moab::ReadNCDF::read_nodesets(), moab::ReadNCDF::read_sidesets(), read_write_file(), recursive_build_tree(), moab::MeshRefiner::refine(), regression_insert_set_1(), resolve_and_exchange(), moab::GeomTopoTool::restore_topology_from_geometric_inclusion(), moab::FBEngine::separate(), moab::FBEngine::split_bedge_at_new_mesh_node(), moab::FBEngine::split_edge_at_mesh_node(), moab::BSPTree::split_leaf(), moab::AdaptiveKDTree::split_leaf(), moab::FBEngine::split_surface(), summarize_cell_volume_change(), test_closedsurface_mesh(), test_eul_read_write_across_files(), test_eul_read_write_append(), test_eul_read_write_T(), test_eul_read_write_timestep(), test_fv_read_write_T(), test_gather_onevar(), test_gather_sets_common(), test_gather_sets_ranged(), test_gcrm_read_write_vars(), test_get_by_tag(), test_get_by_tag_value(), test_homme_read_write_T(), test_intx_in_parallel_elem_based(), test_intx_mpas(), test_list_set_with_stale_handles(), test_mesh(), test_mpas_read_write_vars(), test_multiple_files(), test_pack_tag_data_default_value(), test_packing(), test_ranged_set_with_stale_handles(), test_read_adjacencies(), test_read_coord_vars(), test_read_eul_nomesh(), test_read_eul_novars(), test_read_fv_nomesh(), test_read_fv_novars(), test_read_nodes_common(), test_read_nomesh(), test_read_nothing_common(), test_read_novars(), test_read_one_set_polyhedra(), test_read_parallel(), test_read_set_sets(), test_read_sides(), test_read_two_sets_elems(), test_set_flags(), test_subset(), test_tree(), test_write_unbalanced(), TestMeshRefiner(), moab::ParallelComm::unpack_sets(), moab::FBEngine::weave_lateral_face_from_edges(), MetisPartitioner::write_aggregationtag_partition(), moab::WriteNCDF::write_file(), write_geometry(), write_id_test_file(), MetisPartitioner::write_partition(), and ZoltanPartitioner::write_partition().

virtual ErrorCode moab::Interface::create_set_iterator ( EntityHandle  meshset,
EntityType  ent_type,
int  ent_dim,
int  chunk_size,
bool  check_valid,
SetIterator *&  set_iter 
) [pure virtual]

Create an iterator over the set Create a new iterator that iterates over entities with the specified type or dimension. Only one of ent_type or dim can be set; use dim=-1 or ent_type=MBMAXTYPE for the other. Iterators for list-type (ordered) sets are stable over set modification, unless entity removed or deleted is the one at the current position of the iterator. If the check_valid parameter is passed as true, entities are checked for validity before being passed back by get_next_entities function (checking entity validity can have a non-negligible cost).

Iterators returned by this function can be deleted using the normal C++ delete function. After creating the iterator through this function, further interactions are through methods on the SetIterator class.

Parameters:
meshsetThe entity set associated with this iterator (use 0 for whole instance)
ent_typeEntity type associated with this iterator
ent_dimDimension associated with this iterator
chunk_sizeChunk size of the iterator
check_validIf true, entities are checked for validity before being returned

Implemented in moab::Core.

Referenced by query_elem_to_vert_iters(), and query_vert_to_elem_iters().

virtual ErrorCode moab::Interface::create_vertex ( const double  coordinates[3],
EntityHandle entity_handle 
) [pure virtual]

Creates a vertex with the specified coordinates.

Parameters:
coordinatesArray that has 3 doubles in it.
entity_handleEntityHandle representing the newly created vertex in the database.

Example:

       double coordinates[] = {1.034, 23.23, -0.432};
       EntityHandle new_handle = 0;
       create_vertex( coordinates, entity_handle ); 

Implemented in moab::Core.

Referenced by build_cube(), moab::ReadRTT::build_moab(), build_tree(), build_triangles(), moab::DualTool::construct_dual_vertex(), moab::ReadCGM::create_curve_facets(), create_input_file(), create_lagr_mesh(), create_mesh(), moab::ReadOBJ::create_new_vertex(), create_simple_grid(), create_simple_mesh(), create_single_entity(), create_some_mesh(), create_structured_quad_mesh(), moab::ReadCGM::create_surface_facets(), create_two_hex_full_mesh(), create_unitsq_quads(), create_unitsq_tris(), moab::ReadCGM::create_vertices(), moab::deep_copy_set(), do_test_mode(), moab::Intx2MeshInPlane::findNodes(), moab::Intx2MeshOnSphere::findNodes(), moab::IntxRllCssphere::findNodes(), generate_mesh(), make_atomic_pillow(), make_chord_push(), make_face_shrink(), moab::OrientedBox::make_hex(), make_mesh(), make_triple_chord_push(), manufacture_lagrange_mesh_on_sphere(), mb_adjacent_create_test(), mb_canon_number_test(), mb_forced_adjacencies_test(), mb_higher_order_test(), mb_merge_update_test(), mb_poly_adjacency_test(), mb_poly_adjacency_test2(), mb_poly_test(), mb_side_number_test(), mb_skin_adjacent_surf_patches(), mb_skin_curve_test_common(), mb_skin_fileset_test(), mb_skin_full_common(), mb_skin_higher_order_faces_common(), mb_skin_higher_order_pyramids(), mb_skin_higher_order_regions_common(), mb_skin_poly_test(), mb_skin_reversed_common(), mb_skin_subset_common(), mb_skin_surface_test_common(), mb_skin_volume_test_common(), mb_split_test(), mb_temporary_test(), mb_topo_util_test(), overlap_write_geometry(), moab::MeshTopoUtil::split_entity_nonmanifold(), moab::FBEngine::split_surface_with_direction(), test_build_from_pts(), test_gather_sets_common(), test_read_adjacencies(), test_read_nodes_common(), test_read_one_set_polyhedra(), test_read_sides(), test_subset(), test_write_different_element_types(), test_write_free_nodes(), test_write_read_many_tags(), test_write_unbalanced(), testC(), testD(), moab::ParallelComm::unpack_entities(), vtx(), and write_geometry().

virtual ErrorCode moab::Interface::delete_entities ( const EntityHandle entities,
const int  num_entities 
) [pure virtual]

Removes entities in a vector from the data base.

If any of the entities are contained in any meshsets, it is removed from those meshsets which were created with MESHSET_TRACK_OWNER option bit set. Tags for entity are removed as part of this function.

Parameters:
entities1d vector of entities to delete
num_entitiesNumber of entities in 1d vector

Implemented in moab::Core.

Examples:
DirectAccessWithHoles.cpp.

Referenced by MetisPartitioner::assemble_taggedsets_graph(), moab::FBEngine::chain_two_edges(), moab::ParallelComm::check_clean_iface(), cleanup_after_intersection(), compute_tracer_case1(), create_mesh_with_holes(), moab::ParallelComm::create_part(), moab::create_span_quads(), moab::BSPTree::create_tree(), moab::DualTool::delete_dual_entities(), MBiMesh::delete_entities(), moab::ParallelComm::delete_entities(), moab::ReadHDF5::delete_non_side_elements(), moab::ReadParallel::delete_nonlocal_entities(), moab::BSPTree::delete_tree(), moab::OrientedBoxTreeTool::delete_tree(), moab::Tree::delete_tree_sets(), moab::DualTool::delete_whole_dual(), moab::ParallelComm::destroy_part(), moab::Skinner::find_skin_noadj(), moab::fix_degenerate_quads(), moab::DualTool::foc_delete_dual(), iMOAB_DeregisterApplication(), moab::ReadABAQUS::load_file(), main(), moab::OrientedBox::make_hex(), mb_adjacencies_create_delete_test(), mb_canon_number_test(), mb_mesh_set_parent_child_test(), mb_poly_adjacency_test(), mb_poly_adjacency_test2(), mb_skin_adjacent_surf_patches(), moab::MergeMesh::merge_higher_dimensions(), moab::BSPTree::merge_leaf(), moab::AdaptiveKDTree::merge_leaf(), moab::MergeMesh::perform_merge(), quads_to_tris(), smoab::Interface::remove(), remove_empty_cgm_surfs_and_vols(), replace_faceted_cgm_surfs(), replace_surface(), setup_mesh(), moab::BSPTree::split_leaf(), moab::AdaptiveKDTree::split_leaf(), moab::FBEngine::split_surface(), test_coords_connect_iterate(), test_list_set_with_stale_handles(), test_ranged_set_with_stale_handles(), test_read_one_set_polyhedra(), test_tag_iterate_common(), moab::ReadNCDF::update(), MetisPartitioner::write_aggregationtag_partition(), MetisPartitioner::write_partition(), and ZoltanPartitioner::write_partition().

virtual ErrorCode moab::Interface::delete_entities ( const Range entities) [pure virtual]

Removes entities in a range from the data base.

If any of the entities are contained in any meshsets, it is removed from those meshsets which were created with MESHSET_TRACK_OWNER option bit set. Tags for entity are removed as part of this function.

Parameters:
entitiesRange of entities to delete

Implemented in moab::Core.

virtual int moab::Interface::dimension_from_handle ( const EntityHandle  handle) const [pure virtual]

Returns the topological dimension of an entity.

Returns the topological dimension of an entity.

Parameters:
handleThe EntityHandle you want to find the dimension of.
Returns:
type The topological dimension of handle.

Example:

        int dim = dimension_from_handle( handle); 
        if( dim == 0 ) ...  

Implemented in moab::Core.

Examples:
DeformMeshRemap.cpp.

Referenced by moab::SpatialLocator::add_elems(), MetisPartitioner::assemble_taggedsets_graph(), moab::ScdBox::box_dimension(), moab::ParallelComm::create_iface_pc_links(), moab::ParallelComm::create_interface_sets(), moab::DataCoupler::DataCoupler(), smoab::Interface::dimension(), moab::MeshTopoUtil::equivalent_entities(), moab::ParallelComm::exchange_owned_meshs(), DeformMeshRemap::find_other_sets(), moab::DualTool::foc_delete_dual(), moab::ParallelComm::gather_data(), moab::DualTool::get_graphics_points(), moab::ScdBox::get_params(), moab::ParallelComm::get_pstatus_entities(), ZoltanPartitioner::include_closure(), mb_root_set_test(), moab::MeshTopoUtil::opposite_entity(), moab::LloydSmoother::perform_smooth(), print_vertex_fields(), DeformMeshRemap::read_file(), moab::ParallelComm::resolve_shared_ents(), moab::ElemEvaluator::set_ent_handle(), moab::ParallelComm::set_pstatus_entities(), moab::SpatialLocator::SpatialLocator(), moab::MeshTopoUtil::split_entity_nonmanifold(), moab::MeshTopoUtil::star_entities(), moab::MeshTopoUtil::star_entities_nonmanifold(), moab::MeshTopoUtil::star_next_entity(), moab::ParallelMergeMesh::TagSharedElements(), test_eval(), and moab::DualTool::traverse_hyperplane().

virtual void moab::Interface::estimated_memory_use ( const EntityHandle ent_array = 0,
unsigned long  num_ents = 0,
unsigned long long *  total_storage = 0,
unsigned long long *  total_amortized_storage = 0,
unsigned long long *  entity_storage = 0,
unsigned long long *  amortized_entity_storage = 0,
unsigned long long *  adjacency_storage = 0,
unsigned long long *  amortized_adjacency_storage = 0,
const Tag tag_array = 0,
unsigned  num_tags = 0,
unsigned long long *  tag_storage = 0,
unsigned long long *  amortized_tag_storage = 0 
) [pure virtual]

Calculate amount of memory used to store MOAB data.

This function calculates the amount of memory used to store MOAB data.

There are two possible values for each catagory of memory use. The exact value and the amortized value. The exact value is the amount of memory used to store the data for the specified entities. The amortized value includes the exact value and an amortized estimate of the memory consumed in overhead for storing the values (indexing structures, access structures, etc.)

Note: If ent_array is NULL and total_amortized_storage is *not* NULL, the total memory used by MOAB for storing data all will be returned in the address pointed to by total_amortized_storage.

Parameters:
ent_arrayArray of entities for which to estimate the memory use. If NULL, estimate is done for all entities.
num_entsThe length of ent_array. Not used if ent_rray is NULL.
total_(amortized_)storageThe sum of the memory entity, adjacency, and all tag storage.
(amortized_)entity_storageThe storage for the entity definitions (connectivity arrays for elements, coordinates for vertices, list storage within sets, etc.)
(amortized_)adjacency_storageThe storage for adjacency data.
tag_arrayAn array of tags for which to calculate the memory use.
num_tagsThe lenght of tag_array
(amortized_)tag_storageIf tag_array is not NULL, then one value for each tag specifying the memory used for storing that tag. If tag_array is NULL and this value is not, the location at which to store the total memory used for all tags.

Implemented in moab::Core.

Referenced by adj_perf(), get_mem_stats(), main(), moab::AdaptiveKDTree::print(), print_file_stats(), print_memory_stats(), print_stats(), and umr_perf_test().

virtual void moab::Interface::estimated_memory_use ( const Range ents,
unsigned long long *  total_storage = 0,
unsigned long long *  total_amortized_storage = 0,
unsigned long long *  entity_storage = 0,
unsigned long long *  amortized_entity_storage = 0,
unsigned long long *  adjacency_storage = 0,
unsigned long long *  amortized_adjacency_storage = 0,
const Tag tag_array = 0,
unsigned  num_tags = 0,
unsigned long long *  tag_storage = 0,
unsigned long long *  amortized_tag_storage = 0 
) [pure virtual]

Calculate amount of memory used to store MOAB data.

This function calculates the amount of memory used to store MOAB data.

There are two possible values for each catagory of memory use. The exact value and the amortized value. The exact value is the amount of memory used to store the data for the specified entities. The amortized value includes the exact value and an amortized estimate of the memory consumed in overhead for storing the values (indexing structures, access structures, etc.)

Parameters:
entsEntities for which to estimate the memory use.
total_(amortized_)storageThe sum of the memory entity, adjacency, and all tag storage.
(amortized_)entity_storageThe storage for the entity definitions (connectivity arrays for elements, coordinates for vertices, list storage within sets, etc.)
(amortized_)adjacency_storageThe storage for adjacency data.
tag_arrayAn array of tags for which to calculate the memory use.
num_tagsThe lenght of tag_array
(amortized_)tag_storageIf tag_array is not NULL, then one value for each tag specifying the memory used for storing that tag. If tag_array is NULL and this value is not, the location at which to store the total memory used for all tags.

Implemented in moab::Core.

virtual ErrorCode moab::Interface::get_adjacencies ( const EntityHandle from_entities,
const int  num_entities,
const int  to_dimension,
const bool  create_if_missing,
std::vector< EntityHandle > &  adj_entities,
const int  operation_type = Interface::INTERSECT 
) [pure virtual]

Get the adjacencies associated with a vector of entities to entities of a specfied dimension.

Parameters:
from_entitiesVector of EntityHandle to get adjacencies of.
num_entitiesNumber of entities in from_entities
to_dimensionDimension of desired adjacencies
create_if_missingIf true, MB will create any entities of the specfied dimension which have not yet been created (only useful when to_dimension < dim(*from_entities))
adj_entitiesSTL vector to which adjacent entities are appended.
operation_typeEnum of INTERSECT or UNION. Defines whether to take the intersection or union of the set of adjacencies recovered for the from_entities.

The adjacent entities in vector adjacencies are not in any particular order.

Example:

        std::vector<EntityHandle> adjacencies, from_entities = {hex1, hex2};
          // generate all edges for these two hexes
          get_adjacencies( from_entities, 2, 1, true, adjacencies, Interface::UNION); 
          adjacencies.clear();
            // now find the edges common to both hexes
            get_adjacencies( from_entities, 2, 1, false, adjacencies, Interface::INTERSECT); 

Implemented in moab::Core.

Examples:
DeformMeshRemap.cpp, DirectAccessNoHoles.cpp, DirectAccessWithHoles.cpp, ExtrudePoly.cpp, and LloydRelaxation.cpp.

Referenced by moab::ParallelComm::add_verts(), adj_perf(), ahf_test(), moab::area_coordinates(), moab::AdaptiveKDTree::best_subdivision_snap_plane(), moab::AdaptiveKDTree::best_vertex_median_plane(), moab::AdaptiveKDTree::best_vertex_sample_plane(), moab::MeshGeneration::BrickInstance(), moab::OrientedBoxTreeTool::build_sets(), moab::AxisBox::calculate(), moab::DualTool::check_dual_adjs(), moab::DualTool::check_dual_equiv_edges(), moab::GeomTopoTool::check_model(), moab::MeshTopoUtil::common_entity(), moab::OrientedBox::compute_from_2d_cells(), moab::FBEngine::compute_intersection_points(), moab::MeshTopoUtil::construct_aentities(), moab::DualTool::construct_dual(), moab::DualTool::construct_dual_cells(), moab::DualTool::construct_dual_edges(), moab::DualTool::construct_dual_faces(), moab::DualTool::construct_hp_parent_child(), moab::GeomTopoTool::construct_vertex_ranges(), moab::TempestRemapper::ConvertMOABMesh_WithSortedEntitiesBySource(), moab::TempestRemapper::ConvertMOABMeshToTempest_Private(), moab::TempestRemapper::ConvertTempestMeshToMOAB_Private(), EntityCount::create_adjacencies(), moab::ReadCCMIO::create_cell_from_faces(), create_coarse_mesh(), create_fine_mesh(), moab::ParallelComm::create_iface_pc_links(), create_input_file(), create_int_ents(), moab::ParallelComm::create_interface_sets(), moab::ScdNCHelper::create_mesh(), create_mesh_no_holes(), moab::FBEngine::create_new_gedge(), moab::ReadNCDF::create_sideset_element(), moab::create_span_quads(), smoab::Interface::createAdjacencies(), moab::Intx2Mesh::createTags(), cube_edge_adjacencies_test(), cube_tri_curve_coincidence_test(), cube_verts_connectivity_test(), DeformMeshRemap::deform_master(), moab::DualTool::delete_dual_entities(), moab::ReadHDF5::delete_non_side_elements(), moab::Intx2Mesh::DetermineOrderedNeighbors(), moab::FBEngine::divide_triangle(), do_test_mode(), moab::MeshTopoUtil::equivalent_entities(), fill_coord_on_edges(), moab::SmoothFace::find_edges_orientations(), moab::ParallelComm::find_existing_entity(), moab::Skinner::find_inferred_edges(), find_side(), moab::Skinner::find_skin(), moab::Skinner::find_skin_vertices_1D(), smoab::Interface::findAdjacencies(), moab::DualTool::foc_delete_dual(), moab::DualTool::foc_get_addl_ents(), moab::DualTool::foc_get_ents(), moab::DualTool::fs_get_quad_loops(), moab::DualTool::fs_get_quads(), moab::DualTool::fsr_get_fourth_quad(), moab::WriteHDF5::gather_mesh_info(), moab::GeomTopoTool::geometrize_surface_set(), moab::ScdBox::get_adj_edge_or_face(), get_adjacent_elems(), moab::MeshTopoUtil::get_average_position(), moab::MeshTopoUtil::get_bridge_adjacencies(), moab::DualTool::get_cell_points(), moab::DualTool::get_dual_entities(), moab::DualTool::get_dual_hyperplane(), get_entities(), get_expected_ghosts(), moab::ParallelComm::get_ghosted_entities(), moab::DualTool::get_graphics_points(), get_linear_reconstruction(), moab::MeshTopoUtil::get_manifold(), moab::ReadABAQUS::get_set_nodes(), moab::WriteTemplate::get_valid_sides(), moab::WriteSLAC::get_valid_sides(), moab::WriteNCDF::get_valid_sides(), identify_set(), iMOAB_GetMeshInfo(), iMOAB_GetPointerToSurfaceBC(), ZoltanPartitioner::include_closure(), moab::SmoothFace::init_gradient(), moab::LloydSmoother::initialize(), moab::DualTool::is_blind(), moab::ReadSms::load_file_impl(), moab::WriteGMV::local_write_mesh(), main(), mb_adjacencies_create_delete_test(), mb_adjacent_create_test(), mb_adjacent_vertex_test(), mb_forced_adjacencies_test(), mb_mesh_set_flag_test(), mb_poly_adjacency_test(), mb_poly_adjacency_test2(), mb_poly_test(), mb_skin_higher_order_pyramids(), mb_skin_verts_common(), mb_skin_volume_test_common(), mb_split_test(), mb_temporary_test(), mb_topo_util_test(), mb_upward_adjacencies_test(), moab::MergeMesh::merge_higher_dimensions(), moab::DualTool::next_loop_vertex(), moab::numAdjTriInSet(), moab::DualTool::order_chord(), orient_faces_outward(), perform_lloyd_relaxation(), moab::LloydSmoother::perform_smooth(), put_random_field(), query_vert_to_elem(), query_vert_to_elem_direct(), query_vert_to_elem_iters(), moab::Tqdcfr::read_block(), moab::FBEngine::redistribute_boundary_edges_to_faces(), report_iface_ents(), moab::ParallelComm::resolve_shared_ents(), moab::GeomTopoTool::restore_topology_from_adjacency(), moab::ParCommGraph::send_mesh_parts(), moab::FBEngine::separate(), moab::ParallelComm::set_pstatus_entities(), moab::Skinner::skin_box(), skin_common(), moab::FBEngine::split_bedge_at_new_mesh_node(), moab::MeshTopoUtil::split_entities_manifold(), moab::MeshTopoUtil::split_entity_nonmanifold(), moab::FBEngine::split_internal_edge(), moab::DualTool::split_pair_nonmanifold(), moab::MeshTopoUtil::star_entities(), moab::MeshTopoUtil::star_entities_nonmanifold(), moab::MeshTopoUtil::star_next_entity(), tag_depth(), tag_vertices(), moab::ParallelMergeMesh::TagSharedElements(), test_adjacencies(), test_geometric_sets(), test_ghost_elements(), test_multiple_files(), test_read_adjacencies(), test_read_handle_tag_common(), test_read_one_set_polyhedra(), test_read_sides(), test_scd_invalid(), test_subset(), moab::ReadNCDF::update(), moab::ReadVtk::vtk_read_unstructured_grid(), moab::WriteCCMIO::write_cells_and_faces(), moab::WriteCCMIO::write_external_faces(), moab::WriteGmsh::write_file(), and DeformMeshRemap::write_to_coords().

virtual ErrorCode moab::Interface::get_adjacencies ( const EntityHandle from_entities,
const int  num_entities,
const int  to_dimension,
const bool  create_if_missing,
Range adj_entities,
const int  operation_type = Interface::INTERSECT 
) [pure virtual]

Get the adjacencies associated with a vector of entities to entities of a specfied dimension.

Identical to vector-based get_adjacencies function, except results are returned in a range instead of a vector.

Implemented in moab::Core.

virtual ErrorCode moab::Interface::get_adjacencies ( const Range from_entities,
const int  to_dimension,
const bool  create_if_missing,
Range adj_entities,
const int  operation_type = Interface::INTERSECT 
) [pure virtual]

Get the adjacencies associated with a range of entities to entities of a specfied dimension.

Identical to vector-based get_adjacencies function, except "from" entities specified in a range instead of a vector.

Implemented in moab::Core.

virtual ErrorCode moab::Interface::get_child_meshsets ( const EntityHandle  meshset,
std::vector< EntityHandle > &  children,
const int  num_hops = 1 
) const [pure virtual]

Get child mesh sets of a mesh set.

If num_hops is 1, only immediate children are returned. If num_hops is zero, all ancenstors are returned. Otherwise, num_hops specifies the maximum number of generations to traverse.

Parameters:
meshsetThe mesh set whose children are being queried
childrenSTL vector holding the children returned by this function
num_hopsNumber of generations to traverse (0 = all)

Implemented in moab::Core.

Referenced by add_dead_elems_to_impl_compl(), moab::BSPTreeIter::calculate_polyhedron(), check_children(), check_geometric_set(), moab::GeomTopoTool::check_model(), moab::OrientedBoxTreeTool::closest_to_location(), moab::WriteHDF5Parallel::communicate_shared_set_data(), compare_sets(), moab::GeomTopoTool::construct_obb_tree(), moab::FBEngine::create_volume_with_direction(), moab::BSPTree::delete_tree(), moab::OrientedBoxTreeTool::delete_tree(), moab::Tree::delete_tree_sets(), moab::AdaptiveKDTree::distance_search(), moab::BSPTreeIter::down(), moab::BSPTreeBoxIter::down(), moab::GeomTopoTool::duplicate_model(), moab::AdaptiveKDTree::find_close_triangle(), moab::BVHTree::find_point(), smoab::Interface::findEntitiesWithDimension(), smoab::Interface::findEntitiesWithMultipleParents(), moab::WriteVtk::gather_mesh(), moab::WriteHDF5::gather_mesh_info(), get_children_by_dimension(), moab::GeomTopoTool::get_ct_children_by_dimension(), moab::BSPTreeBoxIter::get_neighbors(), moab::FBEngine::get_vert_edges(), smoab::Interface::getChildSets(), moab::SmoothCurve::is_periodic(), moab::BSPTreeIter::is_sibling(), moab::BSPTree::leaf_containing_point(), mb_mesh_set_parent_child_test(), mb_root_set_test(), moab::GeomQueryTool::measure_volume(), moab::BSPTree::merge_leaf(), moab::AdaptiveKDTree::merge_leaf(), obbstat_write(), obbvis_create(), moab::BSPTreePlaneIter::operator++(), moab::GeomTopoTool::other_entity(), moab::ParallelComm::pack_sets(), moab::GeomQueryTool::point_in_volume_slow(), moab::AdaptiveKDTree::point_search(), moab::OrientedBoxTreeTool::preorder_traverse(), moab::AdaptiveKDTree::print(), print_partitioned_entities(), moab::AdaptiveKDTree::ray_intersect_triangles(), recursive_check_tree(), moab::OrientedBoxTreeTool::recursive_stats(), moab::FBEngine::redistribute_boundary_edges_to_faces(), remove_empty_cgm_surfs_and_vols(), moab::ParallelComm::resolve_shared_sets(), moab::BSPTreeIter::sibling_is_forward(), moab::OrientedBoxTreeTool::sphere_intersect_triangles(), moab::BSPTreeIter::step(), moab::BSPTreeBoxIter::step(), moab::BSPTreeIter::step_to_first_leaf(), moab::BSPTreeBoxIter::step_to_first_leaf(), test_check_meshsets(), test_ghost_elements(), test_read_set_parent_child(), moab::TreeStats::traverse(), and moab::FBEngine::weave_lateral_face_from_edges().

virtual ErrorCode moab::Interface::get_child_meshsets ( const EntityHandle  meshset,
Range children,
const int  num_hops = 1 
) const [pure virtual]

Get child mesh sets of a mesh set.

If num_hops is 1, only immediate children are returned. If num_hops is zero, all ancenstors are returned. Otherwise, num_hops specifies the maximum number of generations to traverse.

Parameters:
meshsetThe mesh set whose children are being queried
childrenRange holding the children returned by this function
num_hopsNumber of generations to traverse (0 = all)

Implemented in moab::Core.

virtual ErrorCode moab::Interface::get_connectivity ( const EntityHandle entity_handles,
const int  num_handles,
Range connectivity,
bool  corners_only = false 
) const [pure virtual]

Gets the connectivity for a vector of elements.

Same as vector-based version except range is returned (unordered!)

Implemented in moab::Core.

Examples:
ExtrudePoly.cpp, LloydRelaxation.cpp, and StructuredMeshSimple.cpp.

Referenced by moab::GeomTopoTool::A_is_in_B(), access_adjacencies(), moab::Skinner::add_adjacency(), add_field_value(), moab::ParallelComm::add_verts(), ahf_test(), moab::VerdictWrapper::all_quality_measures(), moab::SmoothFace::area(), moab::area_coordinates(), moab::area_on_sphere(), moab::area_on_sphere_lHuiller(), moab::area_spherical_element(), moab::WriteSTL::ascii_write_triangles(), moab::EntitySource::assign_global_ids(), moab::WriteSTL::binary_write_triangles(), moab::GeomQueryTool::boundary_case(), moab::FBEngine::boundary_nodes_on_face(), moab::FBEngine::BreakTriangle2(), calc_centroid(), moab::Util::centroid(), moab::FBEngine::chain_able_edge(), moab::DualTool::check_1d_loop_edge(), check_adj_ho_nodes(), check_children(), check_common_vertex(), moab::DualTool::check_dual_equiv_edges(), check_ho_element(), check_identical_mesh(), moab::ParallelComm::check_local_shared(), check_mesh_is_tet(), moab::GeomTopoTool::check_model(), check_parallel_read(), check_point_in_triangles(), check_valid_connectivity(), moab::Skinner::classify_2d_boundary(), cleanup_after_intersection(), closedsurface_uref_hirec_convergence_study(), moab::OrientedBoxTreeTool::closest_to_location(), moab::closest_to_triangles(), compare(), compare_tags(), moab::SmoothCurve::compute_control_points_on_boundary_edges(), moab::SmoothFace::compute_internal_control_points_on_facets(), moab::FBEngine::compute_intersection_points(), compute_lagrange_mesh_on_sphere(), compute_normals(), moab::SmoothFace::compute_tangents_for_each_edge(), compute_tracer_case1(), compute_velocity_case1(), moab::Intx2MeshInPlane::computeIntersectionBetweenRedAndBlue(), moab::Intx2MeshOnSphere::computeIntersectionBetweenRedAndBlue(), moab::IntxRllCssphere::computeIntersectionBetweenRedAndBlue(), moab::BVHTree::construct_element_vec(), moab::TempestRemapper::ConvertMOABMesh_WithSortedEntitiesBySource(), moab::TempestRemapper::ConvertMOABMeshToTempest_Private(), moab::OrientedBox::covariance_data_from_tris(), moab::ReadCCMIO::create_cell_from_faces(), create_fine_mesh(), moab::ReadABAQUS::create_instance_of_part(), create_lagr_mesh(), moab::ScdNCHelper::create_mesh(), moab::FBEngine::create_new_gedge(), moab::ReadNCDF::create_sideset_element(), moab::create_span_quads(), moab::ReadNCDF::create_ss_elements(), moab::Intx2Mesh::createTags(), cube_tri_vertex_test(), moab::deep_copy_set(), moab::deep_copy_set_with_quads(), moab::Intx2Mesh::DetermineOrderedNeighbors(), moab::FBEngine::divide_triangle(), do_kdtree_test(), do_linear_test(), moab::GQT_IntRegCtxt::edge_node_piercing_intersect(), moab::SmoothCurve::end_coordinates(), moab::enforce_convexity(), moab::MeshTopoUtil::equivalent_entities(), eseq_test1b(), moab::ParallelComm::estimate_ents_buffer_size(), moab::SmoothFace::eval_bezier_patch(), moab::SmoothFace::eval_bezier_patch_normal(), moab::SmoothFace::evaluate_smooth_edge(), moab::SmoothCurve::evaluate_smooth_edge(), moab::SmoothFace::facet_area_coordinate(), find_coincident_edges(), find_coincident_elements(), moab::SmoothFace::find_edges_orientations(), moab::Skinner::find_match(), find_side(), moab::Skinner::find_skin_noadj(), moab::Skinner::find_skin_vertices_1D(), moab::Intx2Mesh::FindMaxEdgesInSet(), moab::fix_degenerate_quads(), moab::DualTool::foc_get_ents(), moab::DualTool::fs_get_quads(), moab::WriteVtk::gather_mesh(), moab::WriteTemplate::gather_mesh_information(), moab::WriteSLAC::gather_mesh_information(), moab::WriteNCDF::gather_mesh_information(), moab::GeomTopoTool::geometrize_surface_set(), moab::MeshTopoUtil::get_average_position(), get_barycenters(), moab::MeshTopoUtil::get_bridge_adjacencies(), moab::DualTool::get_cell_points(), moab::WriteCGNS::get_conn_table(), get_ents(), moab::EvalSet::get_eval_set(), get_gnomonic_plane(), moab::DualTool::get_graphics_points(), moab::Coupler::get_group_integ_vals(), get_intersection_weights(), get_linear_reconstruction(), moab::FBEngine::get_nodes_from_edge(), moab::GeomQueryTool::get_normal(), moab::DualTool::get_opposite_verts(), moab::ParallelComm::get_proc_nvecs(), moab::DualTool::get_radial_dverts(), get_signed_volume(), hex_containing_point(), iMOAB_GetBlockElementConnectivities(), iMOAB_GetBlockInfo(), iMOAB_GetElementConnectivity(), moab::SmoothFace::init_bezier_edge(), moab::SmoothFace::init_gradient(), moab::WriteNCDF::initialize_exodus_file(), moab::WriteHDF5::initialize_mesh(), moab::Coupler::initialize_tree(), moab::Coupler::interp_field(), moab::AdaptiveKDTree::intersect_children_with_elems(), moab::SmoothFace::is_at_vertex(), VtxTagger::leaf(), moab::ReadNC::load_file(), moab::WriteGMV::local_write_mesh(), moab::Coupler::locate_points(), main(), make_tris_from_quad(), manufacture_lagrange_mesh_on_sphere(), match_vertices_and_elements(), mb_adjacent_create_test(), mb_adjacent_vertex_test(), mb_bar_connectivity_test(), mb_canon_number_test(), mb_hex_connectivity_test(), mb_higher_order_test(), mb_merge_update_test(), mb_poly_test(), mb_quad_connectivity_test(), mb_skin_adjacent_surf_patches(), mb_skin_curve_test_common(), mb_skin_higher_order_faces_common(), mb_skin_higher_order_pyramids(), mb_skin_higher_order_regions_common(), mb_skin_poly_test(), mb_skin_subset_common(), mb_skin_surface_test_common(), mb_tet_connectivity_test(), mb_tri_connectivity_test(), mb_upward_adjacencies_test(), mb_write_mesh_test(), measure(), moab::GeomQueryTool::measure_area(), moab::GeomQueryTool::measure_volume(), moab::MergeMesh::merge_all(), moab::MergeMesh::merge_higher_dimensions(), min_edge_length(), moab::Coupler::nat_param(), moab::Util::normal(), moab::DualTool::order_chord(), orient_faces_outward(), moab::ParallelComm::pack_entity_seq(), perform_lloyd_relaxation(), moab::LloydSmoother::perform_smooth(), moab::GeomQueryTool::poly_solid_angle(), moab::positive_orientation(), moab::DualTool::print_cell(), moab::FBEngine::print_debug_triangle(), print_hex(), print_vertex_fields(), project_exact_torus(), moab::SmoothFace::project_to_facet(), moab::ProjectOnSphere(), moab::VerdictWrapper::quality_measure(), query_elem_to_vert(), query_elem_to_vert_iters(), query_struct_elem_to_vert(), random_point_in_hex(), moab::AdaptiveKDTree::ray_intersect_triangles(), moab::OrientedBoxTreeTool::ray_intersect_triangles(), read_sets(), moab::SimplexTemplateRefiner::refine_entity(), moab::Skinner::remove_adjacency(), moab::GeomTopoTool::restore_topology_from_adjacency(), set_departure_points_position(), moab::ElemEvaluator::set_ent_handle(), moab::Intx2MeshInPlane::setup_red_cell(), moab::IntxRllCssphere::setup_red_cell(), moab::Intx2MeshOnSphere::setup_red_cell(), moab::FBEngine::smooth_new_intx_points(), moab::AdaptiveKDTree::sphere_intersect_triangles(), moab::OrientedBoxTreeTool::sphere_intersect_triangles(), moab::FBEngine::split_bedge_at_new_mesh_node(), moab::FBEngine::split_boundary(), moab::split_box(), moab::MeshTopoUtil::split_entity_nonmanifold(), moab::FBEngine::split_internal_edge(), moab::FBEngine::split_quads(), moab::FBEngine::split_surface_with_direction(), moab::SmoothCurve::start_coordinates(), moab::ExoIIUtil::static_get_element_type(), test_adjacencies(), test_closedsurface_mesh(), test_element(), test_elements(), test_elements_on_several_procs(), test_linear_reconstruction(), test_mesh(), test_moab_v3_poly_format(), test_pack_tag_data_sparse(), test_pack_tag_handle_data(), test_read_alternate_coord_format(), test_read_handle_tag(), test_read_hexes(), test_read_int_tag(), test_read_one_set_polyhedra(), test_read_prisms(), test_read_quads(), test_read_real_tag(), test_read_set_contents(), test_read_tets(), test_read_triangles(), test_unitcircle(), test_unitsphere(), test_unitsq_quads(), test_unitsq_tris(), test_valid_tree(), test_var_length_handle_tag(), test_write_different_element_types(), time_forward_eval(), time_integrate(), time_jacobian(), time_reverse_eval(), tri_coords(), moab::SmoothCurve::u_from_position(), umr_perf_test(), moab::BoundBox::update(), moab::WriteCCMIO::write_cells_and_faces(), moab::WriteNCDF::write_elementblocks(), moab::WriteVtk::write_elems(), moab::WriteCCMIO::write_external_faces(), moab::WriteSmf::write_file(), moab::WriteGmsh::write_file(), moab::WriteAns::write_file(), moab::WriteTemplate::write_matsets(), moab::WriteSLAC::write_matsets(), and moab::WriteNCDF::write_poly_faces().

virtual ErrorCode moab::Interface::get_connectivity ( const Range entity_handles,
Range connectivity,
bool  corners_only = false 
) const [pure virtual]

Gets the connectivity for elements.

Same as vector-based version except range is returned (unordered!)

Implemented in moab::Core.

virtual ErrorCode moab::Interface::get_connectivity ( const EntityHandle entity_handles,
const int  num_handles,
std::vector< EntityHandle > &  connectivity,
bool  corners_only = false,
std::vector< int > *  offsets = NULL 
) const [pure virtual]

Gets the connectivity for a vector of elements.

Corner vertices or all vertices (including higher-order nodes, if any) are returned. For non-element handles (ie, MB_MeshSets), returns an error. Connectivity data is copied from the database into the vector. Connectivity of a vertex is the same vertex. The nodes in connectivity are properly ordered according to that element's canonical ordering.

Parameters:
entity_handlesVector of element handles to get connectivity of.
num_handlesNumber of entity handles in entity_handles
connectivityVector in which connectivity of entity_handles is returned.
corners_onlyIf true, returns only corner vertices, otherwise returns all of them (including any higher-order vertices)
offsetsIf non-NULL, offsets->[i] stores the index of the start of entity i's connectivity, with the last value in offsets one beyond the last entry

Implemented in moab::Core.

virtual ErrorCode moab::Interface::get_connectivity ( const EntityHandle  entity_handle,
const EntityHandle *&  connectivity,
int &  num_nodes,
bool  corners_only = false,
std::vector< EntityHandle > *  storage = 0 
) const [pure virtual]

Gets a pointer to constant connectivity data of entity_handle

Sets number_nodes equal to the number of nodes of the entity_handle . Faster then the other get_connectivity function because no data is copied. The nodes in 'connectivity' are properly ordered according to the element's canonical ordering.

Example:

          const EntityHandle* conn;
          int number_nodes = 0;
          get_connectivity( entity_handle, conn, number_nodes ); 

Example2:

          std::vector<EntityHandle> sm_storage;
          const EntityHandle* conn;
          int number_nodes;
          get_connectivity( handle, conn, number_nodes, false, &sm_storage );
          if (conn == &sm_storage[0])
            std::cout << "Structured mesh element" << std::endl;
Parameters:
entity_handleEntityHandle to get connectivity of.
connectivityArray in which connectivity of entity_handle is returned.
num_nodesNumber of MeshVertices in array connectivity.
corners_onlyIf true, returns only corner vertices, otherwise returns all of them (including any higher-order vertices)
storageSome elements (e.g. structured mesh) may not have an explicit connectivity list. This function will normally return MB_NOT_IMPLEMENTED for such elements. However, if the caller passes in a non-null value for this argument, space will be allocated in this vector for the connectivity data and the connectivity pointer will be set to the data in this vector.

Implemented in moab::Core.

virtual ErrorCode moab::Interface::get_connectivity_by_type ( const EntityType  type,
std::vector< EntityHandle > &  connect 
) const [pure virtual]

Get the connectivity array for all entities of the specified entity type.

This function returns the connectivity of just the corner vertices, no higher order nodes

Parameters:
typeThe entity type of elements whose connectivity is to be returned
connectan STL vector used to return connectivity array (in the form of entity handles)

Implemented in moab::Core.

virtual ErrorCode moab::Interface::get_contained_meshsets ( const EntityHandle  meshset,
std::vector< EntityHandle > &  contained,
const int  num_hops = 1 
) const [pure virtual]

Get mesh sets contained in a mesh set.

If num_hops is 1, only immediate contents are returned. Otherwise a recursive query of all contained sets is performed, returning every visted set. The value of num_hops limites the depth of the search, with zero indicating no depth limit.

Parameters:
meshsetThe mesh set whose contents are being queried
containedThe result list.
num_hopsNumber of generations to traverse (0 = all)

Implemented in moab::Core.

Referenced by mb_root_set_test().

virtual ErrorCode moab::Interface::get_contained_meshsets ( const EntityHandle  meshset,
Range contained,
const int  num_hops = 1 
) const [pure virtual]

Get mesh sets contained in a mesh set.

If num_hops is 1, only immediate contents are returned. Otherwise a recursive query of all contained sets is performed, returning every visted set. The value of num_hops limites the depth of the search, with zero indicating no depth limit.

Parameters:
meshsetThe mesh set whose contents are being queried
containedThe result list.
num_hopsNumber of generations to traverse (0 = all)

Implemented in moab::Core.

virtual ErrorCode moab::Interface::get_coords ( const Range entity_handles,
double *  coords 
) const [pure virtual]

Gets xyz coordinate information for range of vertices.

Length of 'coords' should be at least 3*entity_handles.size() before making call.

Parameters:
entity_handlesRange of vertex handles (error if not of type MBVERTEX)
coordsArray used to return x, y, and z coordinates.

Example:

        double coords[3];
        get_coords( vertex_handle, coords ); 
        std::cout<<"x = "<<coords[0]<<std::endl;
        std::cout<<"y = "<<coords[1]<<std::endl;
        std::cout<<"z = "<<coords[2]<<std::endl; 

Implemented in moab::Core.

Examples:
DeformMeshRemap.cpp, ExtrudePoly.cpp, LloydRelaxation.cpp, and StructuredMeshSimple.cpp.

Referenced by moab::GeomTopoTool::A_is_in_B(), add_field_value(), moab::VerdictWrapper::all_quality_measures(), moab::SmoothFace::area(), moab::area_coordinates(), moab::area_on_sphere(), moab::area_on_sphere_lHuiller(), moab::area_spherical_element(), moab::WriteSTL::ascii_write_triangles(), moab::AdaptiveKDTree::best_subdivision_snap_plane(), moab::AdaptiveKDTree::best_vertex_median_plane(), moab::AdaptiveKDTree::best_vertex_sample_plane(), moab::WriteSTL::binary_write_triangles(), moab::GeomQueryTool::boundary_case(), moab::box_from_axes(), build_tree(), calc_centroid(), moab::AxisBox::calculate(), calculate_big_value(), moab::Util::centroid(), moab::FBEngine::chain_able_edge(), check_children(), check_common_vertex(), check_ho_element(), check_identical_mesh(), check_mesh_is_tet(), check_point_in_triangles(), closedsurface_uref_hirec_convergence_study(), moab::OrientedBoxTreeTool::closest_to_location(), moab::closest_to_triangles(), compare_conn(), moab::SmoothCurve::compute_control_points_on_boundary_edges(), moab::OrientedBox::compute_from_vertices(), moab::SmoothFace::compute_internal_control_points_on_facets(), moab::FBEngine::compute_intersection_points(), compute_lagrange_mesh_on_sphere(), compute_normals(), moab::SmoothFace::compute_tangents_for_each_edge(), compute_tracer_case1(), compute_velocity_case1(), moab::Intx2MeshInPlane::computeIntersectionBetweenRedAndBlue(), moab::Intx2MeshOnSphere::computeIntersectionBetweenRedAndBlue(), moab::IntxRllCssphere::computeIntersectionBetweenRedAndBlue(), moab::BVHTree::construct_element_vec(), moab::TempestRemapper::ConvertMOABMesh_WithSortedEntitiesBySource(), moab::TempestRemapper::ConvertMOABMeshToTempest_Private(), moab::OrientedBox::covariance_data_from_tris(), moab::ReadABAQUS::create_instance_of_part(), create_lagr_mesh(), create_mesh(), moab::deep_copy_set(), moab::deep_copy_set_with_quads(), DeformMeshRemap::deform_master(), do_kdtree_test(), do_linear_test(), do_test_mode(), moab::GQT_IntRegCtxt::edge_node_piercing_intersect(), moab::SmoothCurve::end_coordinates(), moab::enforce_convexity(), moab::SmoothFace::eval_bezier_patch(), moab::SmoothFace::evaluate_smooth_edge(), moab::SmoothCurve::evaluate_smooth_edge(), moab::SmoothFace::facet_area_coordinate(), find_coincident_edges(), find_coincident_elements(), find_coincident_nodes(), moab::MergeMesh::find_merged_to(), moab::Intx2MeshInPlane::findNodes(), moab::Intx2MeshOnSphere::findNodes(), moab::IntxRllCssphere::findNodes(), moab::MeshTopoUtil::get_average_position(), get_barycenters(), get_departure_grid(), get_gnomonic_plane(), moab::Coupler::get_group_integ_vals(), get_intersection_weights(), moab::GeomQueryTool::get_normal(), get_signed_volume(), hex_containing_point(), identify_set(), iMOAB_GetVisibleVerticesCoordinates(), moab::SmoothFace::init_bezier_edge(), moab::SmoothFace::init_gradient(), moab::AdaptiveKDTree::intersect_children_with_elems(), moab::SmoothFace::is_at_vertex(), moab::SpatialLocator::locate_points(), moab::Coupler::locate_points(), main(), make_tris_from_quad(), manufacture_lagrange_mesh_on_sphere(), match_vertices_and_elements(), mb_vertex_coordinate_test(), mb_write_mesh_test(), measure(), moab::GeomQueryTool::measure_area(), moab::GeomQueryTool::measure_volume(), merge_duplicate_vertices(), min_edge_length(), moab::Coupler::nat_param(), OffsetHexCenterNodes::node_added(), moab::Util::normal(), moab::ParallelComm::pack_entities(), perform_lloyd_relaxation(), moab::LloydSmoother::perform_smooth(), moab::GeomQueryTool::poly_solid_angle(), moab::ParallelMergeMesh::PopulateMyTup(), moab::positive_orientation(), moab::FBEngine::print_debug_triangle(), print_hex(), project_exact_torus(), moab::SmoothFace::project_to_facet(), moab::ProjectOnSphere(), moab::putElementField(), moab::putVertexField(), moab::VerdictWrapper::quality_measure(), query_elem_to_vert(), query_elem_to_vert_iters(), query_struct_elem_to_vert(), query_vert_to_elem(), query_vert_to_elem_iters(), random_point_in_hex(), moab::AdaptiveKDTree::ray_intersect_triangles(), moab::OrientedBoxTreeTool::ray_intersect_triangles(), read_sets(), recursive_check_tree(), moab::SimplexTemplateRefiner::refine_entity(), moab::ElemEvaluator::set_ent_handle(), moab::ParallelComm::settle_intersection_points(), moab::Intx2MeshInPlane::setup_red_cell(), moab::IntxRllCssphere::setup_red_cell(), moab::Intx2MeshOnSphere::setup_red_cell(), moab::FBEngine::smooth_new_intx_points(), moab::AdaptiveKDTree::sphere_intersect_triangles(), moab::OrientedBoxTreeTool::sphere_intersect_triangles(), moab::split_box(), moab::MeshTopoUtil::split_entity_nonmanifold(), moab::FBEngine::split_quads(), moab::FBEngine::split_surface_with_direction(), moab::SmoothCurve::start_coordinates(), tag_vertices(), test_closedsurface_mesh(), test_coords_connect_iterate(), test_elements(), test_eval(), test_gather_sets_ranged(), test_global_value_common(), test_leaf_polyhedron(), test_linear_reconstruction(), test_mesh(), test_pack_bit_tag_data(), test_pack_tag_data_dense(), test_pack_tag_data_sparse(), test_pack_variable_length_tag(), test_read_alternate_coord_format(), test_read_double_tag(), test_read_elements_common(), test_read_int_tag(), test_read_nodes(), test_read_nodes_common(), test_read_one_set_polyhedra(), test_read_opaque_tag(), test_read_real_tag(), test_read_set_contents(), test_read_sets_common(), test_read_tags(), test_read_vertices(), test_subset(), test_unitcircle(), test_unitsphere(), test_unitsq_quads(), test_unitsq_tris(), test_valid_tree(), test_vertices(), time_forward_eval(), time_integrate(), time_jacobian(), time_reverse_eval(), tri_coords(), moab::SmoothCurve::u_from_position(), umr_perf_test(), moab::BoundBox::update(), moab::ReadNCDF::update(), moab::FBEngine::weave_lateral_face_from_edges(), moab::WriteCGNS::write_coord_cgns(), moab::WriteSmf::write_file(), moab::WriteGmsh::write_file(), moab::WriteAns::write_file(), moab::WriteVtk::write_nodes(), and DeformMeshRemap::write_to_coords().

virtual ErrorCode moab::Interface::get_coords ( const EntityHandle entity_handles,
const int  num_entities,
double *  coords 
) const [pure virtual]

Gets xyz coordinate information for vector of vertices.

Identical to range-based function, except entity handles are specified using a 1d vector and vector length.

Implemented in moab::Core.

virtual ErrorCode moab::Interface::get_coords ( const Range entity_handles,
double *  x_coords,
double *  y_coords,
double *  z_coords 
) const [pure virtual]

Get vertex coordinates in blocks by dimension.

Get the X, Y, and Z coordinates of a group of vertices. Coordinates are returned in separate arrays, one for each dimension. Each coordinate array must be of sufficient length to hold the coordinate value for each vertex. Array pointers may be NULL if coordinates in the the respective dimension are not desired.

Parameters:
entity_handlesThe group of vertex handles for which to get the coordiantes.
x_coordsOutput: the X coordinate of each vertex. May be NULL.
y_coordsOutput: the Y coordinate of each vertex. May be NULL.
z_coordsOutput: the Z coordinate of each vertex. May be NULL.

Implemented in moab::Core.

virtual ErrorCode moab::Interface::get_entities_by_dimension ( const EntityHandle  meshset,
const int  dimension,
Range entities,
const bool  recursive = false 
) const [pure virtual]

Retrieves all entities of a given topological dimension in the database or meshset.

Appends entities to list passed in.

Parameters:
meshsetMeshset whose entities are being queried (zero if query is for entire mesh).
dimensionTopological dimension of entities desired.
entitiesRange in which entities of dimension dimension are returned.
recursiveIf true, meshsets containing meshsets are queried recursively. Returns the contents of meshsets, but not the meshsets themselves if true.

Example:

          // get 1d (edge) elements in the entire mesh
          Range edges;
          get_entities_by_dimension( 0, 1, edges );

Implemented in moab::Core.

Examples:
ExtrudePoly.cpp, GenLargeMesh.cpp, HelloMOAB.cpp, LloydRelaxation.cpp, ReduceExchangeTags.cpp, StructuredMeshSimple.cpp, and VisTags.cpp.

Referenced by add_field_value(), adj_perf(), ahf_test(), moab::area_on_sphere(), moab::area_on_sphere_lHuiller(), MetisPartitioner::assemble_graph(), ZoltanPartitioner::assemble_graph(), MetisPartitioner::assemble_taggedents_graph(), moab::ParallelComm::assign_global_ids(), moab::FBEngine::boundary_mesh_edges_on_face(), moab::FBEngine::boundary_nodes_on_face(), moab::MeshGeneration::BrickInstance(), moab::OrientedBoxTreeTool::build_sets(), moab::NCHelperGCRM::check_existing_mesh(), moab::NCHelperHOMME::check_existing_mesh(), moab::NCHelperMPAS::check_existing_mesh(), moab::GeomTopoTool::check_model(), check_parallel_read(), check_valid_connectivity(), cleanup_after_intersection(), closedsurface_uref_hirec_convergence_study(), moab::OrientedBoxTreeTool::closest_to_location(), moab::NCWriteGCRM::collect_mesh_info(), moab::NCWriteHOMME::collect_mesh_info(), moab::NCWriteMPAS::collect_mesh_info(), moab::ScdNCWriteHelper::collect_mesh_info(), compute_normals(), compute_tracer_case1(), compute_velocity_case1(), moab::DualTool::construct_dual(), moab::GeomTopoTool::construct_obb_tree(), moab::TempestRemapper::ConvertMOABMesh_WithSortedEntitiesBySource(), moab::TempestRemapper::ConvertMOABMeshToTempest_Private(), create_fine_mesh(), create_hex_mesh(), moab::ReadABAQUS::create_instance_of_part(), moab::ParallelComm::create_interface_sets(), create_lagr_mesh(), moab::create_span_quads(), moab::deep_copy_set(), moab::Intx2Mesh::DetermineOrderedNeighbors(), do_file(), moab::enforce_convexity(), smoab::Interface::findEntitiesWithDimension(), moab::Intx2Mesh::FindMaxEdgesInSet(), moab::WriteHDF5::gather_all_mesh(), moab::ParallelComm::gather_data(), moab::WriteCCMIO::gather_matset_info(), moab::WriteHDF5::gather_mesh_info(), moab::WriteCCMIO::gather_neuset_info(), generate_random_points(), moab::GeomTopoTool::geometrize_surface_set(), get_barycenters(), moab::WriteCGNS::get_cell_entities(), get_departure_grid(), moab::WriteCGNS::get_edge_entities(), get_entities(), get_ents(), get_ents_from_geometric_sets(), moab::WriteCGNS::get_face_entities(), moab::ParallelComm::get_ghosted_entities(), get_gnomonic_plane(), moab::ParallelComm::get_iface_entities(), get_imesh_mesh(), get_intersection_weights(), get_linear_reconstruction(), moab::ParallelComm::get_part_entities(), moab::ParallelComm::get_pstatus_entities(), moab::ReadABAQUS::get_set_elements(), moab::ReadABAQUS::get_set_nodes(), moab::WriteCGNS::get_vertex_entities(), iMOAB_GetMeshInfo(), iMOAB_GetPointerToSurfaceBC(), iMOAB_GetPointerToVertexBC(), iMOAB_UpdateMeshInfo(), moab::Intx2Mesh::intersect_meshes(), moab::OrientedBoxTreeTool::join_trees(), load_file(), moab::ReadABAQUS::load_file(), main(), manufacture_lagrange_mesh_on_sphere(), mb_mesh_set_appends(), mb_mesh_sets_test(), mb_skin_fileset_test(), mb_skin_poly_test(), mb_skin_verts_common(), moab::GeomQueryTool::measure_area(), moab::GeomQueryTool::measure_volume(), merge_with_tag_test(), mergesimple_test(), moab::Coupler::nat_param(), moab::DualTool::order_chord(), ZoltanPartitioner::partition_mesh_and_geometry(), moab::GeomQueryTool::point_in_volume_slow(), moab::ParallelMergeMesh::PopulateMySkinEnts(), moab::positive_orientation(), moab::AdaptiveKDTree::print(), process_partition_file(), project_exact_torus(), moab::putElementField(), moab::ReadABAQUS::read_element_list(), moab::ScdNCHelper::read_scd_variables_to_nonset_allocate(), moab::NCHelperGCRM::read_ucd_variables_to_nonset_allocate(), moab::NCHelperHOMME::read_ucd_variables_to_nonset_allocate(), moab::NCHelperMPAS::read_ucd_variables_to_nonset_allocate(), moab::FBEngine::redistribute_boundary_edges_to_faces(), refine_entities(), report_iface_ents(), moab::ParallelComm::resolve_shared_ents(), moab::GeomTopoTool::restore_topology_from_adjacency(), run_local_smoother(), moab::ScdBox::ScdBox(), moab::FBEngine::separate(), set_density(), skin_common(), moab::FBEngine::smooth_new_intx_points(), moab::FBEngine::split_boundary(), tag_depth(), moab::ScdInterface::tag_shared_vertices(), test_bc_sets(), test_blocks(), test_check_groups(), test_check_num_entities(), test_closedsurface_mesh(), test_delete_entities(), test_elements_on_several_procs(), test_geometric_sets(), test_ghost_elements(), test_ghost_tag_exchange(), test_iterator(), test_linear_reconstruction(), test_mesh(), test_multiple_files(), test_sequences_after_ghosting(), test_unitcircle(), test_unitsphere(), umr_perf_test(), update_density(), moab::Intx2MeshOnSphere::update_tracer_data(), moab::WriteGmsh::write_file(), and moab::WriteNCDF::write_file().

virtual ErrorCode moab::Interface::get_entities_by_dimension ( const EntityHandle  meshset,
const int  dimension,
std::vector< EntityHandle > &  entities,
const bool  recursive = false 
) const [pure virtual]

Retrieves all entities of a given topological dimension in the database or meshset.

Appends entities to list passed in.

Parameters:
meshsetMeshset whose entities are being queried (zero if query is for entire mesh).
dimensionTopological dimension of entities desired.
entitiesRange in which entities of dimension dimension are returned.
recursiveIf true, meshsets containing meshsets are queried recursively. Returns the contents of meshsets, but not the meshsets themselves if true.

Example:

          // get 1d (edge) elements in the entire mesh
          Range edges;
          get_entities_by_dimension( 0, 1, edges );

Implemented in moab::Core.

virtual ErrorCode moab::Interface::get_entities_by_handle ( const EntityHandle  meshset,
Range entities,
const bool  recursive = false 
) const [pure virtual]

Returns all entities in the data base or meshset, in a range (order not preserved)

Appends entities to list passed in.

Parameters:
meshsetMeshset whose entities are being queried (zero if query is for the entire mesh).
entitiesRange in which entities are returned.
recursiveIf true, meshsets containing meshsets are queried recursively. Returns the contents of meshsets, but not the meshsets themselves if true.

Example:

        Range entities;
          // get all non-meshset entities in meshset, including in contained meshsets
          get_entities_by_handle(meshset, entities, true);

Implemented in moab::Core.

Examples:
DeformMeshRemap.cpp, DirectAccessNoHoles.cpp, DirectAccessWithHoles.cpp, SetsNTags.cpp, and TestExodusII.cpp.

Referenced by MetisPartitioner::assemble_taggedsets_graph(), moab::AdaptiveKDTree::best_subdivision_plane(), moab::AdaptiveKDTree::best_subdivision_snap_plane(), moab::AdaptiveKDTree::best_vertex_median_plane(), moab::AdaptiveKDTree::best_vertex_sample_plane(), build_tree(), moab::AxisBox::calculate(), check_ho_elements(), check_mesh_is_tet(), moab::GeomTopoTool::check_model(), check_parallel_read(), moab::WriteHDF5Parallel::communicate_shared_set_data(), compare_sets(), moab::DualTool::construct_hp_parent_child(), moab::GeomTopoTool::construct_vertex_ranges(), moab::SpectralMeshTool::convert_to_coarse(), moab::WriteHDF5::count_set_size(), moab::ParallelComm::create_iface_pc_links(), moab::ReadParallel::delete_nonlocal_entities(), do_kdtree_test(), moab::GeomTopoTool::duplicate_model(), moab::ParallelComm::estimate_sets_buffer_size(), moab::ElemEvaluator::find_containing_entity(), moab::Skinner::find_geometric_skin(), moab::MergeMesh::find_merged_to(), DeformMeshRemap::find_other_sets(), moab::BVHTree::find_point(), smoab::Interface::findAllMeshEntities(), moab::DualTool::foc_delete_dual(), moab::DualTool::fs_get_quads(), moab::WriteVtk::gather_mesh(), moab::WriteTemplate::gather_mesh_information(), moab::WriteSLAC::gather_mesh_information(), moab::WriteNCDF::gather_mesh_information(), moab::DualTool::get_dual_entities(), get_entities(), get_ghost_entities(), moab::ParallelComm::get_ghosted_entities(), moab::DualTool::get_graphics_points(), moab::ParallelComm::get_iface_entities(), moab::Coupler::get_matching_entities(), moab::WriteTemplate::get_neuset_elems(), moab::WriteSLAC::get_neuset_elems(), moab::WriteCCMIO::get_neuset_elems(), moab::DualTool::get_opposite_verts(), moab::ParallelComm::get_part_entities(), moab::ParallelComm::get_pstatus_entities(), moab::WriteNCDF::get_sideset_elems(), identify_set(), iMOAB_DeregisterApplication(), ZoltanPartitioner::include_closure(), SetIntersectIter< Container >::intersect_with_set(), moab::DualTool::is_blind(), moab::GeomTopoTool::is_owned_set(), TriTagger::leaf(), VtxTagger::leaf(), moab::ReadParallel::load_file(), moab::ReadNCDF::load_file(), moab::Tqdcfr::load_file(), main(), mb_common_tag_test(), mb_merge_update_test(), mb_mesh_set_appends(), mb_mesh_set_flag_test(), mb_mesh_set_list_replace_test(), mb_mesh_set_set_replace_test(), mb_mesh_sets_test(), mb_type_is_maxtype_test(), moab::MergeMesh::merge_all(), moab::BSPTree::merge_leaf(), moab::AdaptiveKDTree::merge_leaf(), min_edge_length(), moab::Coupler::normalize_mesh(), moab::ParallelComm::pack_sets(), print_partitioned_entities(), moab::ProjectOnSphere(), moab::OrientedBoxTreeTool::ray_intersect_triangles(), DeformMeshRemap::read_file(), moab::ReadNCDF::read_nodesets(), read_sets(), recursive_check_tree(), moab::FBEngine::redistribute_boundary_edges_to_faces(), moab::MeshRefiner::refine(), refine_entities(), regression_insert_set_1(), regression_mmiller_8_2010(), remove_entities_from_sets(), moab::ParallelComm::resolve_shared_ents(), moab::ParallelComm::resolve_shared_sets(), moab::ParallelComm::set_partitioning(), moab::OrientedBoxTreeTool::sphere_intersect_triangles(), tag_elements(), moab::ParallelComm::tag_iface_entities(), tag_vertices(), moab::ParallelMergeMesh::TagSharedElements(), test_clear_bit(), test_delete_bit_data(), test_delete_tag_data(), test_geometric_sets(), test_get_entity_tags(), test_get_set(), test_get_set_bit(), test_get_set_variable_length(), test_iterator(), test_leaf_polyhedron(), test_list_set_with_stale_handles(), test_multiple_files(), test_packing(), test_read_bc_sets(), test_read_geom_set(), test_read_material_set(), test_read_material_set1(), test_read_material_set2(), test_read_nodes_common(), test_read_parallel(), test_read_physical_set(), test_read_set_contents(), test_read_sets_common(), test_set_flags(), test_var_length_data_common(), test_var_length_handle_tag(), test_write_unbalanced(), moab::TreeStats::traverse(), moab::BoundBox::update(), verdict_test1(), MetisPartitioner::write_aggregationtag_partition(), moab::WriteGmsh::write_file(), moab::WriteAns::write_file(), and moab::WriteDamsel::write_sets().

virtual ErrorCode moab::Interface::get_entities_by_handle ( const EntityHandle  meshset,
std::vector< EntityHandle > &  entities,
const bool  recursive = false 
) const [pure virtual]

Returns all entities in the data base or meshset, in a vector (order preserved)

Appends entities to list passed in.

Parameters:
meshsetMeshset whose entities are being queried (zero if query is for the entire mesh).
entitiesSTL vector in which entities are returned.
recursiveIf true, meshsets containing meshsets are queried recursively. Returns the contents of meshsets, but not the meshsets themselves if true.

Example:

        std::vector<EntityHandle> entities;
          // get all non-meshset entities in meshset, including in contained meshsets
          get_entities_by_handle(meshset, entities, true);

Implemented in moab::Core.

virtual ErrorCode moab::Interface::get_entities_by_type ( const EntityHandle  meshset,
const EntityType  type,
Range entities,
const bool  recursive = false 
) const [pure virtual]

Retrieve all entities of a given type in the database or meshset.

Appends entities to list passed in.

Parameters:
meshsetMeshset whose entities are being queried (zero if query is for entire mesh).
typeType of entities to be returned
entitiesRange in which entities of type type are returned.
recursiveIf true, meshsets containing meshsets are queried recursively. Returns the contents of meshsets, but not the meshsets themselves. Specifying both recursive=true and type=MBENTITYSET is an error, as it would always result in an empty list.

Example:

          // get the quadrilateral elements in meshset
          Range quads;
          get_entities_by_type( meshset, MBQUAD, quads );

Implemented in moab::Core.

Examples:
ExtrudePoly.cpp, HelloMOAB.cpp, LloydRelaxation.cpp, and LoadPartial.cpp.

Referenced by moab::GeomTopoTool::A_is_in_B(), add_dead_elems_to_impl_compl(), moab::ParallelComm::add_verts(), moab::ReadMCNP5::average_with_existing_tally(), build_tree(), moab::FBEngine::chain_able_edge(), check_answers(), check_children(), moab::DualTool::check_dual_adjs(), check_identical_mesh(), check_mesh_is_tet(), moab::GeomTopoTool::check_model(), check_num_verts(), check_valid_connectivity(), closest_point_in_triangles(), moab::OrientedBoxTreeTool::closest_to_location(), moab::closest_to_triangles(), coincident_counts(), moab::SmoothCurve::compute_control_points_on_boundary_edges(), compute_lagrange_mesh_on_sphere(), moab::SmoothCurve::compute_tangents_for_each_edge(), count_owned_entities(), moab::ScdNCHelper::create_quad_coordinate_tag(), cube_edge_adjacencies_test(), cube_tri_curve_coincidence_test(), cube_tri_vertex_test(), cube_tris_connectivity_test(), cube_verts_connectivity_test(), moab::deep_copy_set_with_quads(), do_kdtree_test(), do_linear_test(), do_test_mode(), moab::AdaptiveKDTree::find_close_triangle(), smoab::Interface::findDetachedEntities(), smoab::Interface::findEntities(), smoab::Interface::findEntityRootParents(), moab::fix_degenerate_quads(), fix_surface_senses(), moab::WriteHDF5::gather_all_mesh(), moab::WriteHDF5::gather_mesh_info(), gather_one_cell_var(), EntityCount::get_counts(), moab::DualTool::get_dual_entities(), get_entities(), get_imesh_mesh(), get_mem_stats(), moab::Tqdcfr::get_mesh_entities(), moab::ReadABAQUS::get_nodes_by_id(), moab::FBEngine::get_nodes_from_edge(), get_signed_volume(), moab::WriteSTL::get_triangles(), hex_containing_point(), iMOAB_DeregisterApplication(), iMOAB_UpdateMeshInfo(), ZoltanPartitioner::include_closure(), moab::SmoothFace::init_gradient(), moab::Skinner::initialize(), initialize_area_and_tracer(), moab::DualTool::list_entities(), moab::ReadParallel::load_file(), moab::WriteGMV::local_write_mesh(), main(), make_mesh(), manufacture_lagrange_mesh_on_sphere(), match_vertices_and_elements(), mb_adjacent_vertex_test(), mb_bar_connectivity_test(), mb_bit_tags_test(), mb_hex_connectivity_test(), mb_merge_update_test(), mb_mesh_set_appends(), mb_mesh_sets_test(), mb_quad_connectivity_test(), mb_skin_adjacent_surf_patches(), mb_tet_connectivity_test(), mb_tri_connectivity_test(), mb_type_is_maxtype_test(), mb_vertex_coordinate_test(), mb_vertex_tag_test(), mb_write_mesh_test(), moab::GeomQueryTool::measure_area(), moab::GeomQueryTool::measure_volume(), merge_2D_elem(), merge_3D_elem(), merge_duplicate_vertices(), merge_edges(), merge_nodes(), merge_top_down(), multiple_loads_of_same_file(), moab::DualTool::next_loop_vertex(), normalize_elems(), moab::AdaptiveKDTree::print(), moab::TreeNodePrinter::print_contents(), print_file_stats(), print_stats(), process_bu_auto_merge(), process_mo_auto_merge(), process_td_auto_merge(), moab::putVertexField(), quads_to_tris(), query_elem_to_vert(), query_elem_to_vert_direct(), query_struct_elem_to_vert(), query_vert_to_elem(), query_vert_to_elem_direct(), moab::AdaptiveKDTree::ray_intersect_triangles(), moab::OrientedBoxTreeTool::ray_intersect_triangles(), moab::Tqdcfr::read_block(), read_cube_vertex_pos_test(), read_cylcube_groups_test(), read_mesh_parallel(), moab::Tqdcfr::read_nodes(), read_one_cell_var(), read_sets(), moab::ReadNCDF::read_sidesets(), regression_mmiller_8_2010(), remove_empty_cgm_surfs_and_vols(), remove_entities_from_sets(), replace_faceted_cgm_surfs(), replace_surface(), report_nsets(), resolve_and_exchange(), moab::ParallelComm::resolve_shared_sets(), moab::FBEngine::separate(), set_departure_points_position(), moab::FBEngine::smooth_new_intx_points(), moab::AdaptiveKDTree::sphere_intersect_triangles(), moab::OrientedBoxTreeTool::sphere_intersect_triangles(), moab::FBEngine::split_bedge_at_new_mesh_node(), moab::FBEngine::split_edge_at_mesh_node(), moab::FBEngine::split_quads(), moab::ScdInterface::tag_shared_vertices(), tag_time(), test_delete_type_tag(), test_element(), test_elements(), test_filter_pstatus(), test_gather_onevar(), test_gather_sets_ranged(), test_geometric_sets(), test_get_by_tag(), test_get_by_tag_value(), test_get_by_tag_value_dense(), test_global_value_common(), test_ho_elements(), test_iterator(), test_list_set_with_stale_handles(), test_moab_v3_poly_format(), test_multiple_files(), test_pack_bit_tag_data(), test_pack_tag_data_default_value(), test_pack_tag_data_dense(), test_pack_tag_data_sparse(), test_pack_tag_handle_data(), test_pack_variable_length_tag(), test_polyhedra(), test_ranged_set_with_stale_handles(), test_read_adjacencies(), test_read_all(), test_read_alternate_coord_format(), test_read_conn(), test_read_double_tag(), test_read_elements_common(), test_read_eul_onevar(), test_read_fv_onevar(), test_read_geom_set(), test_read_handle_tag(), test_read_handle_tag_common(), test_read_hexes(), test_read_int_tag(), test_read_material_set(), test_read_material_set1(), test_read_material_set2(), test_read_no_edges(), test_read_no_mixed_elements(), test_read_nodes(), test_read_nodes_common(), test_read_nothing_common(), test_read_novars(), test_read_one_set_elems(), test_read_one_set_polyhedra(), test_read_onevar(), test_read_opaque_tag(), test_read_parallel(), test_read_physical_set(), test_read_prisms(), test_read_quads(), test_read_real_tag(), test_read_set_sets(), test_read_sides(), test_read_tagged_elems(), test_read_tagged_nodes(), test_read_tags(), test_read_tets(), test_read_triangles(), test_read_two_sets_elems(), test_read_vertices(), test_subset(), test_valid_tree(), test_var_length_big_data(), test_var_length_data_common(), test_var_length_parallel(), test_vertices(), test_write_different_element_types(), test_write_unbalanced(), TestMeshRefiner(), tri_in_set(), umr_perf_test(), moab::ReadNCDF::update(), update_tracer_test(), moab::WriteSmf::write_file(), moab::WriteAns::write_file(), and moab::Tqdcfr::~Tqdcfr().

virtual ErrorCode moab::Interface::get_entities_by_type ( const EntityHandle  meshset,
const EntityType  type,
std::vector< EntityHandle > &  entities,
const bool  recursive = false 
) const [pure virtual]

Retrieve all entities of a given type in the database or meshset.

Appends entities to list passed in.

Parameters:
meshsetMeshset whose entities are being queried (zero if query is for entire mesh).
typeType of entities to be returned
entitiesRange in which entities of type type are returned.
recursiveIf true, meshsets containing meshsets are queried recursively. Returns the contents of meshsets, but not the meshsets themselves. Specifying both recursive=true and type=MBENTITYSET is an error, as it would always result in an empty list.

Example:

          // get the quadrilateral elements in meshset
          Range quads;
          get_entities_by_type( meshset, MBQUAD, quads );

Implemented in moab::Core.

virtual ErrorCode moab::Interface::get_entities_by_type_and_tag ( const EntityHandle  meshset,
const EntityType  type,
const Tag tag_handles,
const void *const *  values,
const int  num_tags,
Range entities,
const int  condition = Interface::INTERSECT,
const bool  recursive = false 
) const [pure virtual]

Retrieve entities in the database or meshset which have any or all of the tag(s) and (optionally) value(s) specified.

Parameters:
meshsetMeshset whose entities are being queried (zero if query is for entire mesh).
typeType of entities to be returned
tag_handlesVector of tag handles entities must have
valuesVector of pointers to values of tags in tag_handles
num_tagsNumber of tags and values in tag_handles and values
entitiesRange in which entities are returned.
conditionBoolean condition, either Interface::UNION or Interface::INTERSECT
recursiveIf true, meshsets containing meshsets are queried recursively. Returns the contents of meshsets, but not the meshsets themselves. Specifying both recursive=true and type=MBENTITYSET is an error, as it would always result in an empty list.

If Interface::UNION is specified as the condition, entities with any of the tags and values specified are returned. If Interface::INTERSECT is specified, only entities with all of the tags/values are returned.

If values is NULL, entities with the specified tags and any corresponding values are returned. Note that if values is non-NULL, it is a vector of pointers to tag values.

Example:

          // get the dirichlet sets in a mesh
          Range dir_sets;
          Tag dir_tag;
          tag_get_handle(DIRICHLET_SET_TAG_NAME, dir_tag, 1, MB_TYPE_INTEGER);
          get_entities_by_type_and_tag(0, MBENTITYSET, &dir_tag, NULL, 1, dir_sets,
          Interface::UNION);

Implemented in moab::Core.

Examples:
DeformMeshRemap.cpp, SetsNTags.cpp, and TestExodusII.cpp.

Referenced by add_dead_elems_to_impl_compl(), MetisPartitioner::assemble_taggedents_graph(), MetisPartitioner::assemble_taggedsets_graph(), moab::ParallelComm::augment_default_sets_with_ghosts(), moab::ReadMCNP5::average_with_existing_tally(), check_children(), check_geometric_set(), moab::ParallelComm::check_global_ids(), check_handle_tag_type(), check_num_verts(), compare_sets(), moab::Tqdcfr::convert_nodesets_sidesets(), moab::ReadIDEAS::create_elements(), moab::ReadABAQUS::create_instance_of_part(), moab::ReadParallel::create_partition_sets(), moab::ReadGmsh::create_sets(), moab::Skinner::deinitialize(), moab::ReadParallel::delete_nonlocal_entities(), moab::DualTool::delete_whole_dual(), do_file(), moab::GeomTopoTool::entity_by_id(), moab::ParallelComm::exchange_tags(), moab::Tree::find_all_trees(), moab::BSPTree::find_all_trees(), find_block(), moab::ScdInterface::find_boxes(), moab::Skinner::find_geometric_skin(), moab::GeomTopoTool::find_geomsets(), DeformMeshRemap::find_other_sets(), find_sideset(), moab::FBEngine::find_vertex_set_for_node(), smoab::Interface::findEntitiesWithTag(), fix_surface_senses(), get_by_all_types_and_tag(), moab::DualTool::get_dual_entities(), moab::DualTool::get_dual_hyperplanes(), get_ents_from_geometric_sets(), moab::GeomTopoTool::get_gsets_by_dimension(), moab::ParallelData::get_interface_sets(), moab::Coupler::get_matching_entities(), moab::ParallelData::get_partition_sets(), moab::ReadABAQUS::get_set_by_name(), moab::WriteCCMIO::get_sets(), moab::WriteHDF5::get_sparse_tagged_entities(), moab::FBEngine::getNumOfType(), iMOAB_CreateElements(), iMOAB_GetMeshInfo(), iMOAB_UpdateMeshInfo(), moab::Coupler::initialize_spectral_elements(), moab::ReadABAQUS::load_file(), moab::ReadMCNP5::load_one_file(), main(), mb_common_tag_test(), mb_mesh_set_appends(), mb_type_is_maxtype_test(), merge_input_surfs(), overlap_test_measure_area(), overlap_test_measure_volume(), overlap_test_point_in_volume(), overlap_test_ray_fire(), overlap_test_surface_sense(), overlap_test_tracking(), print_partitioned_entities(), moab::WriteHDF5Parallel::print_shared_sets(), process_partition_file(), quads_to_tris(), read_cylcube_curve_senses_test(), read_cylcube_groups_test(), read_cylcube_surf_senses_test(), DeformMeshRemap::read_file(), moab::ParallelComm::reduce_tags(), remove_empty_cgm_surfs_and_vols(), replace_faceted_cgm_surfs(), resolve_and_exchange(), moab::ParallelComm::resolve_shared_sets(), moab::GeomTopoTool::setup_implicit_complement(), summarize_cell_volume_change(), test_bc_sets(), test_bit_tag_big(), test_blocks(), test_check_groups(), test_check_meshsets(), test_closest_to_location(), test_elements_on_several_procs(), test_geometric_sets(), test_get_by_tag(), test_get_by_tag_value(), test_get_by_tag_value_dense(), test_get_ents_with_default_value(), test_ho_elements(), test_measure_area(), test_measure_volume(), test_pack_tag_data_sparse(), test_point_in_volume(), test_ray_fire(), test_read_bc_sets(), test_read_elements_common(), test_read_geom_set(), test_read_material_on_nodes(), test_read_material_set(), test_read_material_set1(), test_read_material_set2(), test_read_physical_set(), test_read_set_sets(), test_read_sets_common(), test_read_tags(), test_root_sets_resize(), test_set_flags(), test_surface_sense(), test_tree(), test_write_shared_sets(), test_write_unbalanced(), moab::ParallelComm::unpack_sets(), moab::ReadNCDF::update(), moab::TreeNodePrinter::visit(), MetisPartitioner::write_aggregationtag_partition(), moab::WriteGmsh::write_file(), moab::WriteAns::write_file(), moab::WriteSLAC::write_file(), moab::WriteTemplate::write_file(), moab::WriteNCDF::write_file(), write_file(), MetisPartitioner::write_partition(), ZoltanPartitioner::write_partition(), moab::WriteCCMIO::write_problem_description(), and moab::WriteVtk::write_tags().

virtual std::string moab::Interface::get_error_string ( const ErrorCode  code) const [pure virtual]

Return string representation of given error code.

Parameters:
codeError code for which string is wanted

Implemented in moab::Core.

Referenced by chkerr(), main(), mb_skin_higher_order_faces_common(), mb_skin_higher_order_regions_common(), mb_skin_poly_test(), print_error(), and MBiMesh::set_last_error().

virtual ErrorCode moab::Interface::get_last_error ( std::string &  info) const [pure virtual]

Return information about the last error.

Parameters:
infostd::string into which information on the last error is written.

Implemented in moab::Core.

Referenced by chkerr(), moab::ReadHDF5::load_file(), load_file_one(), main(), moab_error(), print_error(), and report_iface_ents().

virtual ErrorCode moab::Interface::get_meshset_options ( const EntityHandle  ms_handle,
unsigned int &  options 
) const [pure virtual]

Get the options of a mesh set.

Get the options of a mesh set.

Parameters:
ms_handleHandle for mesh set being queried
optionsBit mask in which mesh set options are returned

Implemented in moab::Core.

Referenced by moab::WriteHDF5Parallel::communicate_shared_set_data(), compare_sets(), moab::ParallelComm::estimate_sets_buffer_size(), moab::WriteHDF5::get_set_info(), mb_mesh_set_flag_test(), mb_root_set_test(), moab::ParallelComm::pack_sets(), moab::MeshRefiner::refine(), test_set_flags(), and moab::WriteDamsel::write_sets().

virtual ErrorCode moab::Interface::get_number_entities_by_dimension ( const EntityHandle  meshset,
const int  dimension,
int &  num_entities,
const bool  recursive = false 
) const [pure virtual]

Return the number of entities of given dimension in the database or meshset.

Parameters:
meshsetMeshset whose entities are being queried (zero if query is for the entire mesh).
dimensionDimension of entities desired.
num_entitiesNumber of entities of the given dimension
recursiveIf true, meshsets containing meshsets are queried recursively. Returns the contents of meshsets, but not the meshsets themselves if true.

Implemented in moab::Core.

Referenced by moab::ScdNCHelper::check_existing_mesh(), moab::Skinner::find_skin_vertices(), smoab::Interface::findHighestDimensionEntities(), main(), mb_mesh_sets_test(), mb_skin_full_common(), mb_skin_higher_order_regions_common(), mb_skin_subset_common(), mb_split_test(), mb_topo_util_test(), moab::AdaptiveKDTree::print(), report_iface_ents(), test_read_elements_common(), and test_read_nodes_common().

virtual ErrorCode moab::Interface::get_number_entities_by_handle ( const EntityHandle  meshset,
int &  num_entities,
const bool  recursive = false 
) const [pure virtual]

Returns number of entities in the data base or meshset.

Identical to get-entities_by_handle, except number instead of entities are returned

Parameters:
meshsetMeshset whose entities are being queried (zero if query is for the entire mesh).
num_entitiesRange in which num_entities are returned.
recursiveIf true, meshsets containing meshsets are queried recursively. Returns the contents of meshsets, but not the meshsets themselves if true.

Implemented in moab::Core.

Referenced by moab::AdaptiveKDTree::build_tree(), moab::ParallelComm::check_clean_iface(), moab::AdaptiveKDTree::compute_depth(), moab::ParallelComm::estimate_sets_buffer_size(), moab::DualTool::foc_delete_dual(), moab::WriteHDF5::get_set_info(), mb_mesh_sets_test(), mb_type_is_maxtype_test(), moab::AdaptiveKDTree::print(), moab::OrientedBoxTreeTool::recursive_stats(), MetisPartitioner::write_aggregationtag_partition(), MetisPartitioner::write_partition(), and ZoltanPartitioner::write_partition().

virtual ErrorCode moab::Interface::get_number_entities_by_type ( const EntityHandle  meshset,
const EntityType  type,
int &  num_entities,
const bool  recursive = false 
) const [pure virtual]

Retrieve the number of entities of a given type in the database or meshset.

Identical to get_entities_by_dimension, except returns number instead of entities

Parameters:
meshsetMeshset whose entities are being queried (zero if query is for entire mesh).
typeType of entities to be returned
num_entitiesNumber of entities of type type
recursiveIf true, meshsets containing meshsets are queried recursively. Returns the contents of meshsets, but not the meshsets themselves. Specifying both recursive=true and type=MBENTITYSET is an error, as it would always result in an empty list.

Implemented in moab::Core.

Referenced by check_esets(), check_sets_sizes(), check_sizes(), moab::DualTool::construct_dual_hyperplanes(), find_block(), main(), mb_mesh_sets_test(), mb_type_is_maxtype_test(), mb_vertex_coordinate_test(), moab::TreeNodePrinter::print_counts(), print_file_stats(), print_stats(), read_cube_tris_test(), read_cube_verts_test(), remove_empty_cgm_surfs_and_vols(), report_nsets(), moab::FBEngine::split_quads(), test_ranged_set_with_stale_handles(), test_read_nothing_common(), test_read_sides(), test_read_tagged_elems(), test_read_tagged_nodes(), and test_write_elements().

virtual ErrorCode moab::Interface::get_number_entities_by_type_and_tag ( const EntityHandle  meshset,
const EntityType  type,
const Tag tag_handles,
const void *const *  values,
const int  num_tags,
int &  num_entities,
const int  condition = Interface::INTERSECT,
const bool  recursive = false 
) const [pure virtual]

Retrieve number of entities in the database or meshset which have any or all of the tag(s) and (optionally) value(s) specified. Identical to get_entities_by_type_and_tag, except number instead of entities are returned

Parameters:
meshsetMeshset whose entities are being queried (zero if query is for entire mesh).
typeType of entities to be returned
tag_handlesVector of tag handles entities must have
valuesVector of pointers to values of tags in tag_handles
num_tagsNumber of tags and values in tag_handles and values
num_entitiesRange in which number of entities are returned.
recursiveIf true, meshsets containing meshsets are queried recursively. Returns the contents of meshsets, but not the meshsets themselves. Specifying both recursive=true and type=MBENTITYSET is an error, as it would always result in an empty list.

Implemented in moab::Core.

Referenced by moab::WriteCGNS::get_set_entities(), mb_type_is_maxtype_test(), read_cube_curves_test(), read_cube_surfs_test(), read_cube_vols_test(), read_cylcube_curve_senses_test(), read_cylcube_surf_senses_test(), test_get_by_tag(), and test_get_by_tag_value().

virtual ErrorCode moab::Interface::get_parent_meshsets ( const EntityHandle  meshset,
std::vector< EntityHandle > &  parents,
const int  num_hops = 1 
) const [pure virtual]
virtual ErrorCode moab::Interface::get_parent_meshsets ( const EntityHandle  meshset,
Range parents,
const int  num_hops = 1 
) const [pure virtual]

Get parent mesh sets of a mesh set.

If num_hops is 1, only immediate parents are returned. If num_hops is zero, all ancenstors are returned. Otherwise, num_hops specifies the maximum number of generations to traverse.

Parameters:
meshsetThe mesh set whose parents are being queried
parentsRange holding the parents returned by this function
num_hopsNumber of generations to traverse (0 = all)

Implemented in moab::Core.

virtual EntityHandle moab::Interface::get_root_set ( ) [pure virtual]

return the entity set representing the whole mesh

Implemented in moab::Core.

Referenced by smoab::Interface::getRoot(), and mb_root_set_test().

virtual double moab::Interface::get_sequence_multiplier ( ) const [pure virtual]

Interface to control memory allocation for sequences Provide a factor that controls the size of the sequence that gets allocated. This is typically useful in the parallel setting when a-priori, the number of ghost entities and the memory required for them within the same sequence as the owned entities are unknown. The default factor is 1.0 but this can be appropriately updated at runtime so that we do not have broken sequences.

Implemented in moab::Core.

virtual ErrorCode moab::Interface::get_vertex_coordinates ( std::vector< double > &  coords) const [pure virtual]

Get blocked vertex coordinates for all vertices.

Blocked = all x, then all y, etc.

Example:

    std::vector<double> coords;
    get_vertex_coordinates(coords);
    double xavg = 0;
    for (int i = 0; i < coords.size()/3; i++) xavg += coords[i]; 

Implemented in moab::Core.

virtual ErrorCode moab::Interface::handle_from_id ( const EntityType  type,
const EntityID  ,
EntityHandle handle 
) const [pure virtual]

Gets an entity handle from the data base, if it exists, according to type and id.

Given an EntiyType and an id, this function gets the existent EntityHandle. If no such EntityHandle exits, it returns MB_ENTITY_NOT_FOUND and sets handle to zero.

Parameters:
typeThe type of the EntityHandle to retrieve from the database.
idThe id of the EntityHandle to retrieve from the database.
handleAn EntityHandle of type type and id.

Example:

        EntityType handle;
        ErrorCode error_code = handle_from_id(MBTRI, 204, handle );
        if( error_code == MB_ENTITY_NOT_FOUND ) ... 

Implemented in moab::Core.

Referenced by mb_higher_order_test(), and moab::Tqdcfr::read_elements().

virtual ErrorCode moab::Interface::high_order_node ( const EntityHandle  parent_handle,
const EntityHandle subfacet_conn,
const EntityType  subfacet_type,
EntityHandle high_order_node 
) const [pure virtual]

Find the higher-order node on a subfacet of an entity.

Given an entity and the connectivity and type of one of its subfacets, find the high order node on that subfacet, if any. The number of vertices in subfacet_conn is derived from subfacet_type and the canonical numbering for that type.

Parameters:
parent_handleThe element whose subfacet is being queried
subfacet_connThe connectivity of the subfacet being queried
subfacet_typeThe type of subfacet being queried
high_order_nodeIf the subfacet has a high-order node defined on parent_handle, the handle for that node.

Implemented in moab::Core.

virtual EntityID moab::Interface::id_from_handle ( const EntityHandle  handle) const [pure virtual]

Returns the id from an EntityHandle.

Parameters:
handleThe EntityHandle you want to find the id of.
Returns:
id Id of handle

Example:

        int id = id_from_handle(handle); 

Implemented in moab::Core.

Referenced by moab::DualTool::check_dual_equiv_edges(), moab::FBEngine::compute_intersection_points(), moab::Intx2MeshInPlane::computeIntersectionBetweenRedAndBlue(), moab::Intx2MeshOnSphere::computeIntersectionBetweenRedAndBlue(), moab::IntxRllCssphere::computeIntersectionBetweenRedAndBlue(), moab::DualTool::construct_dual_hyperplanes(), moab::FBEngine::create_new_gedge(), do_ray_fire_test(), moab::SmoothFace::DumpModelControlPoints(), moab::Intx2MeshInPlane::findNodes(), moab::Intx2MeshOnSphere::findNodes(), moab::IntxRllCssphere::findNodes(), moab::GeomTopoTool::geometrize_surface_set(), moab::SmoothFace::init_gradient(), moab::Intx2Mesh::intersect_meshes(), moab::DualTool::list_entities(), moab::ParallelComm::list_entities(), main(), mb_higher_order_test(), merge_2D_elem(), merge_3D_elem(), merge_edges(), moab::Coupler::nat_param(), moab::DualTool::print_cell(), moab::TreeNodePrinter::print_contents(), moab::FBEngine::print_debug_triangle(), print_hex(), ray_test(), moab::Tqdcfr::read_elements(), moab::FBEngine::separate(), moab::FBEngine::split_bedge_at_new_mesh_node(), moab::FBEngine::split_boundary(), moab::FBEngine::split_edge_at_mesh_node(), moab::FBEngine::split_edge_at_point(), moab::FBEngine::split_surface_with_direction(), test_read_triangles(), moab::DualTool::traverse_hyperplane(), verdict_test1(), moab::TreeLayoutPrinter::visit(), moab::TreeNodePrinter::visit(), moab::WriteGmsh::write_file(), and moab::WriteAns::write_file().

virtual float moab::Interface::impl_version ( std::string *  version_string = NULL) [pure virtual]

Returns the major.minor version number of the implementation.

Parameters:
version_stringIf non-NULL, will be filled in with a string, possibly containing implementation-specific information

Implemented in moab::Core.

virtual ErrorCode moab::Interface::intersect_meshset ( EntityHandle  meshset1,
const EntityHandle  meshset2 
) [pure virtual]

Intersect meshsets.

Intersect meshset1 with meshset2, placing the results in meshset1.

Parameters:
meshset1Mesh set being intersected, also used to pass back result
meshset2Mesh set being intersected with meshset1

Implemented in moab::Core.

Referenced by mb_mesh_sets_test(), and mb_root_set_test().

virtual ErrorCode moab::Interface::list_entities ( const EntityHandle entities,
const int  num_entities 
) const [pure virtual]

List entities, or number of entities in database, to standard output.

Lists data pertaining to entities to standard output. If entities is NULL and num_entities is zero, lists only the number of entities of each type in the database. If entities is NULL and num_entities is non-zero, lists all information for all entities in the database.

Parameters:
entities1d vector of entities to list
num_entitiesNumber of entities in 1d vector

Implemented in moab::Core.

virtual ErrorCode moab::Interface::list_entity ( const EntityHandle  entity) const [pure virtual]

List a single entity; no header printed.

Lists a single entity, including its connectivity and its adjacencies. No header is printed, because calling function might print information between header and information printed by this function.

Parameters:
entityThe entity to be listed.

Implemented in moab::Core.

Referenced by moab::GeomTopoTool::check_model(), moab::FBEngine::compute_intersection_points(), moab::FBEngine::divide_triangle(), moab::GeomTopoTool::geometrize_surface_set(), moab::DualTool::list_entities(), smoab::Interface::printRange(), moab::FBEngine::split_internal_edge(), and verdict_test1().

virtual ErrorCode moab::Interface::load_file ( const char *  file_name,
const EntityHandle file_set = 0,
const char *  options = 0,
const char *  set_tag_name = 0,
const int *  set_tag_values = 0,
int  num_set_tag_values = 0 
) [pure virtual]

Load or import a file.

Load a MOAB-native file or import data from some other supported file format.

Parameters:
file_nameThe location of the file to read.
file_setIf non-null, this argument must be a pointer to a valid entity set handle. All entities read from the file will be added to this set. File metadata will be added to tags on the set.
optionsA list of string options, separated by semicolons (;). See README.IO for more information. Options are typically format-specific options or parallel options. If an option value is unrecognized but the file read otherwise succeeded, MB_UNHANDLED_OPTION will be returned.
set_tag_nameThe name of a tag used to designate the subset of the file to read. The name must correspond to data in the file that will be instantiated in MOAB as a tag.
set_tag_valuesIf the name specified in 'set_tag_name' corresponds to a tag with a single integer value, the values in this tag can be used to further limit the subset of data written from the file to only those entities or sets that have a value for the tag that is one of the values in this array.
num_set_tag_valuesThe length of set_tag_values.

file_set is passed by pointer rather than by value (where a zero handle value would indicate no set) so as to intentionally break compatibility with the previous version of this function because the behavior with respect to the file set was changed. The file_set is now an input-only argument. The previous version of this function unconditionally created a set and passed it back to the caller via a non-const reference argument.

Implemented in moab::Core.

Examples:
DeformMeshRemap.cpp, HelloParMOAB.cpp, LloydRelaxation.cpp, LoadPartial.cpp, ReadWriteTest.cpp, ReduceExchangeTags.cpp, SetsNTags.cpp, TestErrorHandling.cpp, TestErrorHandlingPar.cpp, TestExodusII.cpp, and VisTags.cpp.

Referenced by adj_perf(), ahf_test(), check_model_test(), check_split(), closedsurface_uref_hirec_convergence_study(), create_shell_test(), gather_one_cell_var(), get_ents(), iMOAB_LoadMesh(), smoab::Interface::Interface(), load_and_partition(), load_file(), load_meshset_hirec(), moab::Remapper::LoadNativeMesh(), main(), mb_read_fail_test(), mb_skin_verts_common(), multiple_loads_of_same_file(), perf_inmesh(), read_file(), DeformMeshRemap::read_file(), read_file_(), read_mesh_parallel(), read_one_cell_var(), read_write_file(), regression_ghost_tag_exchange_no_default(), regression_mmiller_8_2010(), save_and_load_on_root(), split_quads_test(), split_test_across(), test_closedsurface_mesh(), test_delete_entities(), test_elements_on_several_procs(), test_eul_read_write_across_files(), test_eul_read_write_append(), test_eul_read_write_T(), test_eul_read_write_timestep(), test_fv_read_write_T(), test_gather_onevar(), test_gather_sets_common(), test_gather_sets_ranged(), test_gcrm_read_write_vars(), test_ghost_elements(), test_ghost_polyhedra(), test_ghost_tag_exchange(), test_homme_read_write_T(), test_intx_in_parallel_elem_based(), test_intx_mpas(), test_load_file(), test_mesh(), test_mpas_read_write_vars(), test_new_pcomm_instance(), test_packing(), test_polygon_mix(), test_polyhedra(), test_read(), test_read_adjacencies(), test_read_all(), test_read_alternate_coord_format(), test_read_bc_sets(), test_read_bit_tag(), test_read_conn(), test_read_containing_sets(), test_read_coord_vars(), test_read_double_tag(), test_read_elements(), test_read_elements_common(), test_read_eul_all(), test_read_eul_nomesh(), test_read_eul_novars(), test_read_eul_onetimestep(), test_read_eul_onevar(), test_read_fv_all(), test_read_fv_nomesh(), test_read_fv_novars(), test_read_fv_onetimestep(), test_read_fv_onevar(), test_read_global_tags(), test_read_handle_tag(), test_read_handle_tag_common(), test_read_int_tag(), test_read_no_edges(), test_read_no_mixed_elements(), test_read_nodes_common(), test_read_nomesh(), test_read_nothing_common(), test_read_novars(), test_read_one_set_elems(), test_read_one_set_polyhedra(), test_read_onetimestep(), test_read_onevar(), test_read_opaque_tag(), test_read_parallel(), test_read_partial(), test_read_polygons(), test_read_polyhedra(), test_read_real_tag(), test_read_set_contents(), test_read_set_parent_child(), test_read_set_sets(), test_read_sets_common(), test_read_sides(), test_read_tagged_elems(), test_read_tagged_nodes(), test_read_tags(), test_read_time(), test_read_two_sets_elems(), test_read_vertices(), test_read_write(), test_root_sets_resize(), test_sequences_after_ghosting(), test_set_flags(), test_too_few_parts(), test_tree(), test_write(), test_write_free_nodes(), test_write_polygons(), test_write_polyhedra(), test_write_read_many_tags(), test_write_shared_sets(), TestErrorHandling_1(), TestErrorHandling_2(), TestErrorHandling_3(), TestErrorHandlingPar_1(), TestErrorHandlingPar_2(), TestMeshRefiner(), verify_split(), and write_and_read().

virtual ErrorCode moab::Interface::load_mesh ( const char *  file_name,
const int *  active_block_id_list = NULL,
const int  num_blocks = 0 
) [pure virtual]

Loads a mesh file into the database.

Loads the file 'file_name'; types of mesh which can be loaded depend on modules available at MB compile time. If active_block_id_list is NULL, all material sets (blocks in the ExodusII jargon) are loaded. Individual material sets can be loaded by specifying their ids in 'active_block_id_list'. All nodes are loaded on first call for a given file. Subsequent calls for a file load any material sets not loaded in previous calls.

Parameters:
file_nameName of file to load into database.
active_block_id_listMaterial set/block ids to load. If NULL, ALL blocks of file_name are loaded.
num_blocksNumber of blocks in active_block_id_list

Example:

        std::vector<int> active_block_id_list;
        int active_block_id_list[] = {1, 4, 10};
        load_mesh( "temp.gen", active_block_id_list, 3 );  //load blocks 1, 4, 10 

Implemented in moab::Core.

Examples:
ExtrudePoly.cpp, and HelloMOAB.cpp.

Referenced by do_file(), load_file_one(), main(), merge_all_test(), merge_with_tag_test(), mergesimple_test(), read_file(), read_tree(), read_write(), test_moab_v3_poly_format(), test_subset(), test_var_length_parallel(), verdict_test1(), and write_and_read().

virtual ErrorCode moab::Interface::merge_entities ( EntityHandle  entity_to_keep,
EntityHandle  entity_to_remove,
bool  auto_merge,
bool  delete_removed_entity 
) [pure virtual]

Merge two entities into a single entity.

Merge two entities into a single entities, with entity_to_keep receiving adjacencies that were on entity_to_remove.

Parameters:
entity_to_keepEntity to be kept after merge
entity_to_removeEntity to be merged into entity_to_keep
auto_mergeIf false, entity_to_keep and entity_to_remove must share the same lower-dimensional entities; if true, MB tries to merge those entities automatically
delete_removed_entityIf true, entity_to_remove is deleted after merge is complete

Implemented in moab::Core.

Referenced by mb_merge_update_test(), merge_2D_elem(), merge_3D_elem(), merge_duplicate_vertices(), merge_edges(), moab::MergeMesh::merge_higher_dimensions(), merge_nodes(), merge_top_down(), moab::MergeMesh::perform_merge(), process_bu_auto_merge(), process_mo_auto_merge(), and process_td_auto_merge().

virtual ErrorCode moab::Interface::num_child_meshsets ( const EntityHandle  meshset,
int *  number,
const int  num_hops = 1 
) const [pure virtual]

Get the number of child mesh sets of a mesh set.

Identical to get_child_meshsets, only number is returned instead of actual children.

Parameters:
meshsetThe mesh set whose children are being queried
numberNumber of children

Implemented in moab::Core.

Referenced by moab::ParallelComm::estimate_sets_buffer_size(), smoab::Interface::findDetachedEntities(), smoab::Interface::findEntityRootParents(), moab::BSPTreeBoxIter::get_neighbors(), moab::WriteHDF5::get_set_info(), mb_mesh_set_parent_child_test(), mb_root_set_test(), smoab::Interface::numChildMeshSets(), moab::ParallelComm::pack_sets(), and remove_empty_cgm_surfs_and_vols().

virtual ErrorCode moab::Interface::num_contained_meshsets ( const EntityHandle  meshset,
int *  number,
const int  num_hops = 1 
) const [pure virtual]

Get the number of mesh sets contained in a mesh set.

Return the number of sets that would be returned by get_contained_meshsets

Parameters:
meshsetThe initial set to begin the query from.
number(Output) The result count.
num_hopsSearch depth (0 => unbounded).

Implemented in moab::Core.

Referenced by mb_root_set_test().

virtual ErrorCode moab::Interface::num_parent_meshsets ( const EntityHandle  meshset,
int *  number,
const int  num_hops = 1 
) const [pure virtual]

Get the number of parent mesh sets of a mesh set.

Identical to get_parent_meshsets, only number is returned instead of actual parents.

Parameters:
meshsetThe mesh set whose parents are being queried
numberNumber of parents

Implemented in moab::Core.

Referenced by moab::ParallelComm::estimate_sets_buffer_size(), moab::Skinner::find_geometric_skin(), smoab::Interface::findDetachedEntities(), smoab::Interface::findEntitiesWithMultipleParents(), smoab::Interface::findEntityRootParents(), moab::WriteHDF5::get_set_info(), mb_mesh_set_parent_child_test(), mb_root_set_test(), and moab::ParallelComm::pack_sets().

template<class IFace >
ErrorCode moab::Interface::query_interface ( IFace *&  ptr) [inline]

Get a pointer to an internal MOAB interface

Returns:
NULL if not found, iterface pointer otherwise
Examples:
DirectAccessNoHoles.cpp, DirectAccessWithHoles.cpp, ExtrudePoly.cpp, and StructuredMeshSimple.cpp.

Definition at line 119 of file Interface.hpp.

Referenced by moab::MeshGeneration::BrickInstance(), check_meshset_internal(), moab::HalfFacetRep::check_mixed_entity_type(), moab::BVHTree::convert_tree(), moab::TempestRemapper::ConvertTempestMeshToMOAB_Private(), create_3dtri_ucd_sequences(), create_coarse_mesh(), create_fine_mesh(), create_hex_mesh(), moab::NestedRefine::create_hm_storage_single_level(), create_mesh_no_holes(), create_mesh_with_holes(), create_parallel_mesh(), create_regular_mesh(), moab::create_span_quads(), moab::SpectralMeshTool::create_spectral_elems(), moab::Core::create_vertices(), moab::deep_copy_set_with_quads(), moab::ReadParallel::delete_nonlocal_entities(), moab::ParallelComm::exchange_ghost_cells(), moab::Skinner::find_skin_scd(), gather_one_cell_var(), moab::RangeSetIterator::get_next_arr(), moab::VectorSetIterator::get_next_arr(), iMOAB_CreateElements(), moab::ReadDamsel::init(), init(), moab::ReadHDF5::init(), moab::WriteHDF5::init(), moab::ParallelComm::initialize(), list_formats(), moab::ReadNC::load_file(), main(), mb_skin_scd_test(), moab::ReadABAQUS::ReadABAQUS(), moab::ReadCCMIO::ReadCCMIO(), moab::ReadCGM::ReadCGM(), moab::ReadCGNS::ReadCGNS(), moab::ReadGmsh::ReadGmsh(), moab::ReadIDEAS::ReadIDEAS(), moab::ReadMCNP5::ReadMCNP5(), moab::ReadNASTRAN::ReadNASTRAN(), moab::ReadNC::ReadNC(), moab::ReadNCDF::ReadNCDF(), moab::ReadOBJ::ReadOBJ(), moab::ReadParallel::ReadParallel(), moab::ReadRTT::ReadRTT(), moab::ReadSmf::ReadSmf(), moab::ReadSms::ReadSms(), moab::ReadSTL::ReadSTL(), moab::ReadTemplate::ReadTemplate(), moab::ReadTetGen::ReadTetGen(), ReadTriangleOutput(), moab::ReadVtk::ReadVtk(), moab::ParallelComm::resolve_shared_ents(), moab::SpectralMeshTool::SpectralMeshTool(), test_adjacencies(), test_bound_box(), test_coords_connect_iterate(), test_gather_onevar(), test_iterates(), test_linear_tet(), test_read_parallel(), test_scd_invalid(), test_write_invalid_elem(), testB(), testE(), moab::Tqdcfr::Tqdcfr(), moab::ParallelComm::unpack_entities(), moab::WriteCCMIO::WriteCCMIO(), moab::WriteCGNS::WriteCGNS(), moab::WriteDamsel::WriteDamsel(), moab::WriteGmsh::WriteGmsh(), moab::WriteGMV::WriteGMV(), moab::WriteNC::WriteNC(), moab::WriteNCDF::WriteNCDF(), moab::WriteSLAC::WriteSLAC(), moab::WriteSmf::WriteSmf(), moab::WriteSTL::WriteSTL(), moab::WriteTemplate::WriteTemplate(), and moab::WriteVtk::WriteVtk().

    { 
      void* tmp_ptr;
      ErrorCode result = query_interface_type(typeid(IFace), tmp_ptr);
      ptr = reinterpret_cast<IFace*>(tmp_ptr);
      return result;
    }
virtual ErrorCode moab::Interface::query_interface_type ( const std::type_info &  iface_type,
void *&  iface 
) [pure virtual]

Get a pointer to an internal MOAB interface

Returns:
NULL if not found, iterface pointer otherwise

Implemented in moab::Core.

template<class IFace >
ErrorCode moab::Interface::release_interface ( IFace *  interface) [inline]
virtual ErrorCode moab::Interface::release_interface_type ( const std::type_info &  iface_type,
void *  iface 
) [pure virtual]

Release reference to MB interface.

Implemented in moab::Core.

virtual ErrorCode moab::Interface::remove_adjacencies ( const EntityHandle  from_handle,
const EntityHandle to_handles,
const int  num_handles 
) [pure virtual]

Removes adjacencies between handles.

Adjacencies in both directions are removed.

Parameters:
from_handleEntity from which adjacencies are being removed.
to_handlesEntities to which adjacencies are being removed.
num_handlesNumber of handles in to_handles

Referenced by mb_forced_adjacencies_test(), moab::MeshTopoUtil::split_entities_manifold(), and moab::MeshTopoUtil::split_entity_nonmanifold().

virtual ErrorCode moab::Interface::remove_child_meshset ( EntityHandle  parent_meshset,
const EntityHandle  child_meshset 
) [pure virtual]

Remove a child mesh set from a mesh set.

Removes child_meshset from the children of parent_meshset. This function does not remove a corresponding parent link from child_meshset.

Parameters:
parent_meshsetThe parent mesh set whose child is being removed
child_meshsetThe child being removed from parent_meshset

Implemented in moab::Core.

Referenced by mb_mesh_set_parent_child_test(), mb_root_set_test(), moab::BSPTree::merge_leaf(), moab::AdaptiveKDTree::merge_leaf(), moab::BSPTree::split_leaf(), and moab::AdaptiveKDTree::split_leaf().

virtual ErrorCode moab::Interface::remove_entities ( EntityHandle  meshset,
const EntityHandle entities,
const int  num_entities 
) [pure virtual]

Remove from a meshset entities in specified vector.

Remove from a meshset entities in specified vector. If meshset has MESHSET_TRACK_OWNER option set, adjacencies in entities in entities are updated.

Parameters:
meshsetMesh set being removed from
entities1d vector of entities being removed from meshset
num_entitiesNumber of entities in 1d vector

Implemented in moab::Core.

virtual ErrorCode moab::Interface::remove_parent_child ( EntityHandle  parent,
EntityHandle  child 
) [pure virtual]

Remove parent and child links between mesh sets.

Removes parent/child links between child_meshset and parent_meshset.

Parameters:
parentThe parent mesh set being removed from child
childThe child mesh set being removed from parent

Implemented in moab::Core.

Referenced by moab::FBEngine::chain_two_edges(), moab::GeomTopoTool::insert_in_tree(), mb_root_set_test(), moab::FBEngine::redistribute_boundary_edges_to_faces(), remove_empty_cgm_surfs_and_vols(), moab::GeomTopoTool::restore_topology_from_geometric_inclusion(), moab::FBEngine::split_bedge_at_new_mesh_node(), and moab::FBEngine::split_edge_at_mesh_node().

virtual ErrorCode moab::Interface::remove_parent_meshset ( EntityHandle  child_meshset,
const EntityHandle  parent_meshset 
) [pure virtual]

Remove a parent mesh set from a mesh set.

Removes parent_meshset from the parents of child_meshset. This function does not remove a corresponding child link from parent_meshset.

Parameters:
child_meshsetThe child mesh whose parent is being removed
parent_meshsetThe parent being removed from meshset

Implemented in moab::Core.

Referenced by mb_mesh_set_parent_child_test(), and mb_root_set_test().

virtual ErrorCode moab::Interface::replace_entities ( EntityHandle  meshset,
const EntityHandle old_entities,
const EntityHandle new_entities,
int  num_entities 
) [pure virtual]

Replace entities in a set with other entities.

Replace entities in a set with other entities

Note:
Behavior is undefined if an entity handle exists in both the old_entities and the new_entities arrays or old_entities contains multiple copies of an entity.
If an entity occurs multiple times in an ordered set, all occurances will be replaced.
For list-based sets, if not all handles in old_entities occcur in the set, the corresponding new_entities will not be added and MB_ENTITY_NOT_FOUND will be returned. For set-based sets, all entities in new_entities wll be added and any contained entities in old_entities will be removed, and the return value will be MB_SUCCESS.
Parameters:
meshsetMesh set being modified
old_entitiesEntities to replace
new_entitiesNew entities to add
num_entitiesNumber of entities in input arrays
Returns:
- MB_SUCCESS : all entities in old_entities replaced
  • MB_ENTITY_NOT_FOUND : one or more entities in new_entities not added to set because corresponding entity in old_entities did not occur in the ordered set.
  • MB_FAILURE : internal error

Implemented in moab::Core.

Referenced by mb_mesh_set_list_replace_test(), mb_mesh_set_set_replace_test(), and mb_root_set_test().

virtual ErrorCode moab::Interface::set_connectivity ( const EntityHandle  entity_handle,
EntityHandle connect,
const int  num_connect 
) [pure virtual]

Sets the connectivity for an EntityHandle. For non-element handles, return an error.

Connectivity is stored exactly as it is ordered in vector connectivity.

Parameters:
entity_handleEntityHandle to set connectivity of.
connectVector containing new connectivity of entity_handle.
num_connectNumber of vertices in connect

Example:

        EntityHandle conn[] = {node1, node2, node3};
        set_connectivity( tri_element, conn, 3 ); 

Implemented in moab::Core.

Referenced by orient_faces_outward(), moab::positive_orientation(), moab::FBEngine::split_bedge_at_new_mesh_node(), and moab::MeshTopoUtil::split_entity_nonmanifold().

virtual ErrorCode moab::Interface::set_coords ( const EntityHandle entity_handles,
const int  num_entities,
const double *  coords 
) [pure virtual]

Sets the xyz coordinates for a vector of vertices.

An error is returned if any entities in the vector are not vertices.

Parameters:
entity_handlesEntityHandle's to set coordinates of. (Must be of type MBVERTEX)
num_entitiesNumber of entities in entity_handles
coordsArray containing new xyz coordinates.

Example:

        double coords[3] = {0.234, -2.52, 12.023};
        set_coords( entity_handle, 1, coords ); 

Implemented in moab::Core.

Examples:
DeformMeshRemap.cpp, and LloydRelaxation.cpp.

Referenced by closedsurface_uref_hirec_convergence_study(), compute_tracer_case1(), get_departure_grid(), main(), OffsetHexCenterNodes::node_added(), perform_lloyd_relaxation(), moab::LloydSmoother::perform_smooth(), project_exact_torus(), moab::ProjectOnSphere(), set_departure_points_position(), moab::ParallelComm::settle_intersection_points(), moab::FBEngine::smooth_new_intx_points(), testA(), moab::ReadNCDF::update(), and DeformMeshRemap::write_to_coords().

virtual ErrorCode moab::Interface::set_coords ( Range  entity_handles,
const double *  coords 
) [pure virtual]

Sets the xyz coordinates for a vector of vertices.

An error is returned if any entities in the vector are not vertices.

Parameters:
entity_handlesEntityHandle's to set coordinates of. (Must be of type MBVERTEX)
num_entitiesNumber of entities in entity_handles
coordsArray containing new xyz coordinates.

Example:

        double coords[3] = {0.234, -2.52, 12.023};
        set_coords( entity_handle, 1, coords ); 

Implemented in moab::Core.

virtual ErrorCode moab::Interface::set_dimension ( const int  dim) [pure virtual]

Set overall geometric dimension.

Returns error if setting to 3 dimensions, mesh has been created, and there are only 2 dimensions on that mesh

Implemented in moab::Core.

Referenced by moab::ReadHDF5::read_nodes().

virtual ErrorCode moab::Interface::set_meshset_options ( const EntityHandle  ms_handle,
const unsigned int  options 
) [pure virtual]

Set the options of a mesh set.

Set the options of a mesh set.

Parameters:
ms_handleHandle for meshset whose options are being changed
optionsBit mask of options to be used

Implemented in moab::Core.

Referenced by mb_mesh_set_flag_test(), and mb_root_set_test().

virtual void moab::Interface::set_sequence_multiplier ( double  factor) [pure virtual]

Interface to control memory allocation for sequences Provide a factor that controls the size of the sequence that gets allocated. This is typically useful in the parallel setting when a-priori, the number of ghost entities and the memory required for them within the same sequence as the owned entities are unknown. The default factor is 1.0 but this can be appropriately updated at runtime so that we do not have broken sequences.

Parameters:
meshsetUser specified multiplier (should be greater than 1.0)

Implemented in moab::Core.

Referenced by moab::ReadParallel::load_file().

virtual ErrorCode moab::Interface::side_element ( const EntityHandle  source_entity,
const int  dim,
const int  side_number,
EntityHandle target_entity 
) const [pure virtual]

Return the handle of the side element of a given dimension and index.

Given a parent entity and a target dimension and side number, return the handle of the entity corresponding to that side. If an entity has not been created to represent that side, one is not created by this function, and zero is returned in target_entity.

Parameters:
source_entityThe entity whose side is being queried.
dimThe topological dimension of the side being queried.
side_numberThe canonical index of the side being queried.
target_entityThe handle of the entity representing this side, if any.

Implemented in moab::Core.

Referenced by moab::MeshTopoUtil::opposite_entity(), smoab::Interface::sideElement(), and smoab::Interface::sideElements().

virtual ErrorCode moab::Interface::side_number ( const EntityHandle  parent,
const EntityHandle  child,
int &  side_number,
int &  sense,
int &  offset 
) const [pure virtual]

Returns the side number, in canonical ordering, of child with respect to parent

Given a parent and child entity, returns the canonical ordering information side number, sense, and offset of child with respect to parent. This function returns MB_FAILURE if child is not related to parent. This function does *not* create adjacencies between parent and child.

Parameters:
parentParent entity to be compared
childChild entity to be compared
side_numberSide number in canonical ordering of child with respect to parent
senseSense of child with respect to parent, assuming ordering of child as given by get_connectivity called on child; sense is 1, -1 for forward/reverse sense, resp.
offsetOffset between first vertex of child and first vertex of side side_number on parent

Implemented in moab::Core.

Referenced by moab::FBEngine::BreakTriangle2(), moab::GeomTopoTool::check_model(), create_fine_mesh(), fill_coord_on_edges(), moab::DualTool::fs_check_quad_sense(), moab::GeomTopoTool::geometrize_surface_set(), moab::WriteTemplate::get_valid_sides(), moab::WriteSLAC::get_valid_sides(), moab::WriteNCDF::get_valid_sides(), iMOAB_GetPointerToSurfaceBC(), mb_side_number_test(), moab::MeshTopoUtil::opposite_entity(), moab::FBEngine::redistribute_boundary_edges_to_faces(), moab::FBEngine::separate(), and moab::FBEngine::split_internal_edge().

virtual ErrorCode moab::Interface::subtract_meshset ( EntityHandle  meshset1,
const EntityHandle  meshset2 
) [pure virtual]

Subtract meshsets.

Subtract meshset2 from meshset1, placing the results in meshset1.

Parameters:
meshset1Mesh set being subtracted from, also used to pass back result
meshset2Mesh set being subtracted from meshset1

Implemented in moab::Core.

Referenced by main(), mb_mesh_sets_test(), and mb_root_set_test().

virtual ErrorCode moab::Interface::tag_clear_data ( Tag  tag_handle,
const Range entity_handles,
const void *  value,
int  value_size = 0 
) [pure virtual]

Set tag data given value.

For a tag, set the values for a list of passed entity handles to the same, specified value.

Parameters:
tag_handleThe tag
entity_handlesThe entity handles for which to set tag values.
tag_dataA pointer to the tag value.
tag_sizesFor variable-length tags, the length of the tag value. This argument will be ignored for fixed-length tags.

Implemented in moab::Core.

Referenced by moab::ParallelComm::check_clean_iface(), moab::Skinner::find_inferred_edges(), test_clear_bit(), test_get_by_tag_value_dense(), test_get_set(), and test_get_set_variable_length().

virtual ErrorCode moab::Interface::tag_clear_data ( Tag  tag_handle,
const EntityHandle entity_handles,
int  num_entity_handles,
const void *  value,
int  value_size = 0 
) [pure virtual]

Set tag data given value.

For a tag, set the values for a list of passed entity handles to the same, specified value.

Parameters:
tag_handleThe tag
entity_handlesThe entity handles for which to set tag values.
tag_dataA pointer to the tag value.
tag_sizesFor variable-length tags, the length of the tag value. This argument will be ignored for fixed-length tags.

Implemented in moab::Core.

virtual ErrorCode moab::Interface::tag_delete ( Tag  tag_handle) [pure virtual]

Remove a tag from the database and delete all of its associated data.

Deletes a tag and all associated data.

Implemented in moab::Core.

Examples:
DeformMeshRemap.cpp, LloydRelaxation.cpp, and VisTags.cpp.

Referenced by MetisPartitioner::assemble_taggedents_graph(), MetisPartitioner::assemble_taggedsets_graph(), moab::MeshGeneration::BrickInstance(), moab::Skinner::classify_2d_boundary(), moab::Intx2Mesh::clean(), moab::ParallelComm::create_iface_pc_links(), moab::Intx2Mesh::createTags(), moab::Skinner::deinitialize(), moab::FBEngine::delete_smooth_tags(), moab::DualTool::delete_whole_dual(), moab::WriteHDF5Parallel::exchange_file_ids(), moab::Skinner::find_inferred_edges(), moab::Skinner::find_skin_vertices(), moab::WriteTemplate::gather_mesh_information(), moab::WriteSLAC::gather_mesh_information(), moab::WriteNCDF::gather_mesh_information(), moab::Tree::get_box_tag(), moab::ReadParallel::load_file(), main(), moab::AdaptiveKDTree::make_tag(), mb_vertex_tag_test(), perform_lloyd_relaxation(), moab::GeomTopoTool::restore_topology_from_adjacency(), save_and_load_on_root(), moab::FBEngine::separate(), test_delete_type_tag(), test_eval(), test_reduce_tag_explicit_dest(), test_reduce_tag_failures(), test_reduce_tags(), test_write_read_many_tags(), testD(), moab::DualTool::traverse_hyperplane(), DeformMeshRemap::write_and_save(), moab::LloydSmoother::~LloydSmoother(), moab::MergeMesh::~MergeMesh(), moab::ScdInterface::~ScdInterface(), moab::SharedSetData::~SharedSetData(), moab::Tqdcfr::~Tqdcfr(), moab::WriteCCMIO::~WriteCCMIO(), moab::WriteNCDF::~WriteNCDF(), moab::WriteSLAC::~WriteSLAC(), and moab::WriteTemplate::~WriteTemplate().

virtual ErrorCode moab::Interface::tag_delete_data ( Tag  tag_handle,
const EntityHandle entity_handles,
int  num_handles 
) [pure virtual]

Delete the data of a vector of entity handles and sparse tag.

Delete the data of a tag on a vector of entity handles. Only sparse tag data are deleted with this function; dense tags are deleted by deleting the tag itself using tag_delete.

Parameters:
tag_handleHandle of the (sparse) tag being deleted from entity
entity_handles1d vector of entity handles from which the tag is being deleted
num_handlesNumber of entity handles in 1d vector

Implemented in moab::Core.

Referenced by MetisPartitioner::assemble_taggedents_graph(), MetisPartitioner::assemble_taggedsets_graph(), moab::ParallelComm::clean_shared_tags(), moab::Tqdcfr::convert_nodesets_sidesets(), moab::ReadParallel::create_partition_sets(), moab::BSPTree::delete_tree(), moab::Tree::delete_tree_sets(), mb_vertex_tag_test(), process_partition_file(), moab::ParallelComm::set_partitioning(), moab::ParallelComm::set_sharing_data(), test_delete_bit_data(), test_delete_tag_data(), MetisPartitioner::write_aggregationtag_partition(), MetisPartitioner::write_partition(), and ZoltanPartitioner::write_partition().

virtual ErrorCode moab::Interface::tag_delete_data ( Tag  tag_handle,
const Range entity_range 
) [pure virtual]

Delete the data of a range of entity handles and sparse tag.

Delete the data of a tag on a range of entity handles. Only sparse tag data are deleted with this function; dense tags are deleted by deleting the tag itself using tag_delete.

Parameters:
tag_handleHandle of the (sparse) tag being deleted from entity
entity_rangeRange of entities from which the tag is being deleted

Implemented in moab::Core.

virtual ErrorCode moab::Interface::tag_get_by_ptr ( const Tag  tag_handle,
const EntityHandle entity_handles,
int  num_entities,
const void **  tag_data,
int *  tag_sizes = 0 
) const [pure virtual]

Get pointers to tag data.

For a tag, get the values for a list of passed entity handles.

Note:
This function may not be used for bit tags.
Parameters:
tag_handleThe tag
entity_handlesAn array of entity handles for which to retreive tag values.
num_entitiesThe length of the 'entity_handles' array.
tag_dataAn array of 'const void*'. Array must be at least 'num_entitities' long. Array is populated (output) with pointers to the internal storage for the tag value corresponding to each entity handle.
tag_sizesThe length of each tag value. Optional for fixed-length tags. Required for variable-length tags.

Implemented in moab::Core.

Referenced by moab::NCWriteHelper::collect_variable_data(), moab::WriteHDF5::create_tag(), moab::WriteNCDF::gather_mesh_information(), moab::ParallelComm::get_owning_part(), moab::GeomTopoTool::get_senses(), moab::WriteHDF5::get_tag_data_length(), moab::WriteNCDF::get_valid_sides(), moab::Coupler::nat_param(), moab::ParallelComm::pack_tag(), moab::WriteNC::process_conventional_tags(), moab::ReadNCDF::read_nodesets(), moab::ReadNCDF::read_sidesets(), test_get_set(), test_get_set_variable_length(), test_get_set_variable_length_mesh(), test_global_opaque_common(), test_global_value_common(), test_pack_variable_length_tag(), test_read_coord_vars(), test_read_handle_tag_common(), test_var_length_data_common(), test_var_length_parallel(), moab::NCHelper::update_time_tag_vals(), moab::WriteHDF5::write_var_len_data(), moab::WriteHDF5::write_var_len_indices(), moab::BSPTree::~BSPTree(), and moab::OrientedBoxTreeTool::~OrientedBoxTreeTool().

virtual ErrorCode moab::Interface::tag_get_by_ptr ( const Tag  tag_handle,
const Range entity_handles,
const void **  tag_data,
int *  tag_sizes = 0 
) const [pure virtual]

Get pointers to tag data.

For a tag, get the values for a list of passed entity handles.

Note:
This function may not be used for bit tags.
Parameters:
tag_handleThe tag
entity_handlesThe entity handles for which to retreive tag values.
tag_dataAn array of 'const void*'. Array is populated (output) with pointers to the internal storage for the tag value corresponding to each entity handle.
tag_sizesThe length of each tag value. Optional for fixed-length tags. Required for variable-length tags.

Implemented in moab::Core.

virtual ErrorCode moab::Interface::tag_get_bytes ( const Tag  tag,
int &  bytes_per_tag 
) const [pure virtual]
virtual ErrorCode moab::Interface::tag_get_data ( const Tag  tag_handle,
const EntityHandle entity_handles,
int  num_entities,
void *  tag_data 
) const [pure virtual]

Get the value of the indicated tag on the specified entities in the specified vector.

Get the value of the indicated tag on the specified entities; tag_data must contain enough space (i.e. tag_size*num_entities bytes) to hold all tag data. MOAB does not check whether this space is available before writing to it.

Note:
For bit tags, tag_data must contain one byte per entity. For each entity, the corresponding byte will contain the tag bits in the lower bit positions and zero bits in the higher.
Parameters:
tag_handleTag whose values are being queried.
entity_handles1d vector of entity handles whose tag values are being queried
num_entitiesNumber of entities in 1d vector of entity handles
tag_dataPointer to memory into which tag data will be written

Implemented in moab::Core.

Examples:
DeformMeshRemap.cpp, LloydRelaxation.cpp, LoadPartial.cpp, SetsNTags.cpp, and TestExodusII.cpp.

Referenced by moab::Skinner::add_adjacency(), add_dead_elems_to_impl_compl(), add_field_value(), moab::ParallelComm::add_pcomm(), MetisPartitioner::assemble_graph(), ZoltanPartitioner::assemble_graph(), MetisPartitioner::assemble_taggedents_graph(), MetisPartitioner::assemble_taggedsets_graph(), moab::ParallelComm::assign_global_ids(), moab::TempestRemapper::AssociateSrcTargetInOverlap(), moab::ParallelComm::augment_default_sets_with_ghosts(), moab::ReadMCNP5::average_with_existing_tally(), moab::OrientedBoxTreeTool::box(), moab::DualTool::check_1d_loop_edge(), check_answers(), check_children(), check_consistent_ids(), moab::DualTool::check_dual_equiv_edges(), moab::NCHelperGCRM::check_existing_mesh(), moab::NCHelperHOMME::check_existing_mesh(), moab::NCHelperMPAS::check_existing_mesh(), check_geometric_set(), check_handle_tag_type(), moab::ParallelComm::check_sent_ents(), check_shared_ents(), check_tag_values(), check_tree(), moab::Skinner::classify_2d_boundary(), moab::ParallelComm::clean_shared_tags(), moab::NCWriteHOMME::collect_mesh_info(), moab::NCWriteMPAS::collect_mesh_info(), moab::NCWriteGCRM::collect_mesh_info(), moab::ScdNCWriteHelper::collect_mesh_info(), compare_conn(), compare_sets(), compare_tags(), moab::SmoothCurve::compute_control_points_on_boundary_edges(), moab::SmoothFace::compute_control_points_on_edges(), moab::SmoothFace::compute_internal_control_points_on_facets(), compute_lagrange_mesh_on_sphere(), compute_normals(), moab::SmoothCurve::compute_tangents_for_each_edge(), compute_tracer_case1(), moab::TempestRemapper::ComputeOverlapMesh(), moab::Coupler::constant_interp(), moab::DualTool::construct_dual(), moab::DualTool::construct_dual_cells(), moab::DualTool::construct_dual_edges(), moab::DualTool::construct_dual_faces(), moab::DualTool::construct_dual_hyperplanes(), moab::DualTool::construct_dual_vertices(), moab::DualTool::construct_hp_parent_child(), moab::DualTool::construct_new_hyperplane(), moab::GeomTopoTool::construct_obb_tree(), moab::Tqdcfr::convert_nodesets_sidesets(), moab::TempestRemapper::ConvertMOABMesh_WithSortedEntitiesBySource(), moab::TempestRemapper::ConvertMOABMeshToTempest_Private(), moab::RefinerTagManager::copy_gid(), count_owned(), create_fine_mesh(), moab::ParallelComm::create_iface_pc_links(), moab::ReadABAQUS::create_instance_of_part(), create_lagr_mesh(), moab::ScdNCHelper::create_mesh(), moab::ReadGmsh::create_sets(), moab::create_span_quads(), moab::ReadHDF5::create_tag(), moab::WriteHDF5::create_tag(), moab::Coupler::create_tuples(), moab::deep_copy_set(), moab::deep_copy_set_with_quads(), DeformMeshRemap::deform_master(), moab::Skinner::deinitialize(), moab::ReadParallel::delete_nonlocal_entities(), moab::GeomTopoTool::dimension(), do_ray_fire_test(), moab::SmoothFace::DumpModelControlPoints(), moab::enforce_convexity(), moab::Skinner::entity_deletable(), moab::SmoothFace::eval_bezier_patch(), moab::SmoothFace::eval_bezier_patch_normal(), moab::SmoothFace::evaluate_smooth_edge(), moab::SmoothCurve::evaluate_smooth_edge(), moab::WriteHDF5Parallel::exchange_file_ids(), moab::ParallelComm::exchange_tags(), moab::SmoothFace::facet_area_coordinate(), moab::ParallelComm::filter_pstatus(), moab::Tree::find_all_trees(), moab::ScdInterface::find_boxes(), moab::Skinner::find_inferred_edges(), moab::Skinner::find_match(), moab::MergeMesh::find_merged_to(), moab::Skinner::find_skin_vertices_1D(), smoab::Interface::findEntitiesWithTag(), moab::Intx2MeshInPlane::findNodes(), moab::Intx2MeshOnSphere::findNodes(), moab::IntxRllCssphere::findNodes(), fix_surface_senses(), moab::ParallelComm::gather_data(), moab::WriteCCMIO::gather_matset_info(), moab::WriteTemplate::gather_mesh_information(), moab::WriteSLAC::gather_mesh_information(), moab::WriteNCDF::gather_mesh_information(), moab::WriteCCMIO::gather_neuset_info(), gather_one_cell_var(), geom_id_by_handle(), moab::ParallelComm::get_all_pcomm(), get_barycenters(), moab::DualTool::get_cell_points(), get_children_by_dimension(), moab::OrientedBoxTreeTool::get_close_tris(), moab::RefinerTagManager::get_common_processes(), moab::WriteCGNS::get_conn_table(), moab::GeomTopoTool::get_ct_children_by_dimension(), get_departure_grid(), moab::DualTool::get_dual_entities(), moab::DualTool::get_dual_entity(), moab::DualTool::get_dual_hyperplane(), moab::ReadABAQUS::get_elements_by_id(), get_expected_ghosts(), moab::DualTool::get_extra_dual_entity(), get_ghost_entities(), moab::WriteCCMIO::get_gids(), moab::DualTool::get_graphics_points(), moab::Coupler::get_group_integ_vals(), get_group_names(), moab::RefinerTagManager::get_input_gids(), moab::ParallelComm::get_interface_procs(), moab::ParallelData::get_interface_sets(), get_intersection_weights(), moab::AdaptiveKDTree::get_last_iterator(), get_linear_reconstruction(), moab::Tqdcfr::get_mesh_entities(), moab::WriteTemplate::get_neuset_elems(), moab::WriteSLAC::get_neuset_elems(), moab::WriteCCMIO::get_neuset_elems(), moab::ReadABAQUS::get_nodes_by_id(), moab::SmoothFace::get_normals_for_vertices(), moab::RefinerTagManager::get_output_gids(), moab::SharedSetData::get_owner(), moab::ParallelComm::get_owner_handle(), moab::ParallelComm::get_owning_part(), moab::ParallelComm::get_pcomm(), moab::ParallelComm::get_pstatus(), moab::ParallelComm::get_pstatus_entities(), moab::DualTool::get_radial_dverts(), moab::ParallelComm::get_remote_handles(), get_root(), moab::ScdInterface::get_scd_box(), moab::GeomTopoTool::get_sense(), moab::GeomTopoTool::get_senses(), moab::ReadABAQUS::get_set_by_name(), moab::WriteCCMIO::get_sets(), moab::ParallelComm::get_sharing_data(), moab::ParallelComm::get_sharing_parts(), get_sharing_processors(), moab::SharedSetData::get_sharing_procs(), moab::WriteNCDF::get_sideset_elems(), moab::BSPTree::get_split_plane(), moab::AdaptiveKDTree::get_split_plane(), moab::GeomTopoTool::get_surface_senses(), moab::WriteHDF5::get_tag_size(), moab::BSPTree::get_tree_box(), moab::AdaptiveKDTree::get_tree_iterator(), moab::WriteTemplate::get_valid_sides(), moab::WriteSLAC::get_valid_sides(), moab::WriteNCDF::get_valid_sides(), smoab::Interface::getTagData(), moab::GeomTopoTool::global_id(), iMOAB_GetBlockID(), iMOAB_GetDoubleTagStorage(), iMOAB_GetElementID(), iMOAB_GetIntTagStorage(), iMOAB_GetPointerToSurfaceBC(), iMOAB_GetPointerToVertexBC(), iMOAB_GetVertexID(), iMOAB_GetVisibleElementsInfo(), moab::SmoothFace::init_bezier_edge(), moab::SmoothFace::init_gradient(), moab::Coupler::initialize_spectral_elements(), moab::ElemEvaluator::integrate(), moab::Coupler::interp_field(), moab::Intx2Mesh::intersect_meshes(), moab::SmoothFace::is_at_vertex(), moab::ParallelComm::is_iface_proc(), moab::DualTool::list_entities(), moab::ReadNC::load_file(), moab::WriteGMV::local_write_mesh(), main(), moab::WriteDamsel::map_sparse_tags(), mb_bit_tags_test(), mb_common_tag_test(), mb_vertex_tag_test(), merge_input_surfs(), moab::MergeMesh::merge_using_integer_tag(), multiple_loads_of_same_file(), smoab::Interface::name(), normalize_elems(), overlap_test_measure_area(), overlap_test_ray_fire(), moab::ParallelComm::pack_entities(), moab::ParallelComm::pack_sets(), moab::ParallelComm::pack_tag(), moab::Tqdcfr::parse_acis_attribs(), perform_lloyd_relaxation(), moab::MergeMesh::perform_merge(), moab::LloydSmoother::perform_smooth(), moab::DualTool::print_cell(), moab::TreeNodePrinter::print_contents(), print_partitioned_entities(), moab::WriteHDF5Parallel::print_set_sharing_data(), moab::print_type_sets(), print_vertex_fields(), moab::WriteNC::process_conventional_tags(), process_partition_file(), moab::SmoothFace::project_to_facet_plane(), quads_to_tris(), query_elem_to_vert_iters(), query_vert_to_elem(), query_vert_to_elem_iters(), read_cylcube_groups_test(), moab::ReadABAQUS::read_element_list(), moab::ReadNCDF::read_nodesets(), read_one_cell_var(), moab::ReadNCDF::read_sidesets(), read_tree(), smoab::DataSetConverter::readDenseTags(), recursive_check_tree(), moab::ParallelComm::reduce_tags(), moab::SimplexTemplateRefiner::refine_entity(), moab::Skinner::remove_adjacency(), remove_empty_cgm_surfs_and_vols(), moab::ParallelComm::remove_pcomm(), replace_faceted_cgm_surfs(), replace_surface(), moab::ParallelComm::resolve_shared_ents(), moab::ParallelComm::resolve_shared_sets(), moab::GeomTopoTool::restore_topology_from_adjacency(), moab::ScdBox::ScdBox(), moab::FBEngine::separate(), moab::GeomTopoTool::separate_by_dimension(), set_density(), moab::RefinerTagManager::set_element_tags_from_ent(), moab::FBEngine::set_neumann_tags(), moab::SharedSetData::set_owner(), moab::ParallelComm::set_partitioning(), moab::ParallelComm::set_pstatus_entities(), moab::GeomTopoTool::set_sense(), moab::SharedSetData::set_sharing_procs(), moab::ElemEvaluator::set_tag(), moab::ElemEvaluator::set_tag_handle(), moab::ExoIIUtil::static_get_element_type(), summarize_cell_volume_change(), tag_depth(), moab::ParallelComm::tag_iface_entities(), tag_time(), test_assign_global_ids(), test_bc_sets(), test_bit_tag_big(), test_blocks(), test_check_meshsets(), test_clear_bit(), test_cubit14(), test_delete_bit_data(), test_delete_tag_data(), test_element(), test_elements_on_several_procs(), test_gather_onevar(), test_get_set(), test_get_set_bit(), test_ghost_elements(), test_ghost_tag_exchange(), test_linear_reconstruction(), test_measure_area(), test_mesh_value(), test_moab_v3_poly_format(), test_pack_bit_tag_data(), test_pack_tag_data_default_value(), test_pack_tag_data_dense(), test_pack_tag_data_sparse(), test_pack_tag_handle_data(), test_ray_fire(), test_read_all(), test_read_bit_tag(), test_read_double_tag(), test_read_elements_common(), test_read_eul_onevar(), test_read_fv_onevar(), test_read_geom_set(), test_read_global_tags(), test_read_handle_tag(), test_read_hexes(), test_read_int_tag(), test_read_material_on_nodes(), test_read_material_set(), test_read_no_mixed_elements(), test_read_nodes(), test_read_nodes_common(), test_read_novars(), test_read_one_set_polyhedra(), test_read_onevar(), test_read_opaque_tag(), test_read_prisms(), test_read_quads(), test_read_real_tag(), test_read_set_sets(), test_read_sets_common(), test_read_tags(), test_read_tets(), test_set_flags(), test_shared_sets(), test_vertices(), test_write_shared_sets(), time_integrate(), moab::WriteCCMIO::transform_coords(), moab::DualTool::traverse_hyperplane(), moab::SmoothCurve::u_from_position(), moab::ParallelComm::unpack_tags(), moab::ReadNCDF::update(), update_density(), moab::GQT_IntRegCtxt::update_orient(), moab::Intx2MeshOnSphere::update_tracer_data(), update_tracer_test(), validate_tree(), moab::TreeNodePrinter::visit(), MetisPartitioner::write_aggregationtag_partition(), moab::WriteNCDF::write_BCs(), moab::WriteVtk::write_bit_tag(), moab::WriteCCMIO::write_cells_and_faces(), moab::WriteCCMIO::write_dbl_option(), moab::WriteCCMIO::write_external_faces(), moab::WriteGmsh::write_file(), moab::WriteAns::write_file(), moab::WriteSLAC::write_file(), moab::WriteTemplate::write_file(), moab::WriteNCDF::write_file(), write_file(), moab::WriteCCMIO::write_int_option(), moab::WriteTemplate::write_matsets(), moab::WriteSLAC::write_matsets(), moab::WriteTemplate::write_nodes(), moab::WriteSLAC::write_nodes(), moab::WriteCCMIO::write_nodes(), moab::WriteNCDF::write_nodes(), moab::NCWriteGCRM::write_nonset_variables(), moab::NCWriteHOMME::write_nonset_variables(), moab::NCWriteMPAS::write_nonset_variables(), moab::WriteCCMIO::write_problem_description(), moab::WriteCCMIO::write_str_option(), moab::WriteVtk::write_tag(), moab::WriteHDF5::write_tag_values(), DeformMeshRemap::write_to_coords(), and moab::Tqdcfr::~Tqdcfr().

virtual ErrorCode moab::Interface::tag_get_data ( const Tag  tag_handle,
const Range entity_handles,
void *  tag_data 
) const [pure virtual]

Get the value of the indicated tag on the specified entities in the specified range.

Identical to previous function, except entities are specified using a range instead of a 1d vector.

Parameters:
tag_handleTag whose values are being queried.
entity_handlesRange of entity handles whose tag values are being queried
tag_dataPointer to memory into which tag data will be written

Implemented in moab::Core.

virtual ErrorCode moab::Interface::tag_get_data_type ( const Tag  tag,
DataType type 
) const [pure virtual]

Get data type of tag.

Get the type of the tag data. The tag is data is assumed to be a vector of this type. If the tag data vetcor contains more than one value, then the tag size must be a multiple of the size of this type.

Parameters:
tagThe tag
typeThe type of the specified tag (output).

Implemented in moab::Core.

Examples:
VisTags.cpp.

Referenced by moab::WriteHDF5Parallel::append_serial_tag_data(), check_handle_tag_type(), moab::check_int_tag(), moab::WriteHDF5Parallel::check_serial_tag_data(), check_tag(), moab::check_tag_type(), moab::NCWriteHelper::collect_variable_data(), compare_sets(), compare_tags(), moab::RefinerTagManager::create_tag_internal(), moab::WriteHDF5::get_tag_size(), iMOAB_GetDoubleTagStorage(), iMOAB_GetIntTagStorage(), iMOAB_SetDoubleTagStorage(), iMOAB_SetIntTagStorage(), main(), moab::MergeMesh::merge_using_integer_tag(), parse_tag_create(), parse_tag_spec(), moab::ReadHDF5::read_dense_tag(), moab::ReadHDF5::read_sparse_tag(), moab::ReadHDF5::read_var_len_tag(), smoab::DataSetConverter::readDenseTags(), moab::ParallelComm::reduce_tags(), moab::ParallelComm::resolve_shared_ents(), moab::ParallelComm::resolve_shared_sets(), tag_type_string(), test_create_tag(), test_create_var_len_tag(), test_delete_type_tag(), test_pack_bit_tag_data(), test_pack_tag_data_default_value(), test_pack_tag_data_dense(), test_pack_tag_data_sparse(), test_pack_tag_handle_data(), test_pack_variable_length_tag(), test_read_bit_tag(), test_read_handle_tag(), test_read_int_tag(), test_read_real_tag(), test_var_length_parallel(), test_write_read_many_tags(), moab::ParallelComm::unpack_tags(), moab::WriteVtk::write_tag(), and moab::WriteVtk::write_tags().

virtual ErrorCode moab::Interface::tag_get_default_value ( Tag  tag,
const void *&  def_val,
int &  size 
) const [pure virtual]

Get a tag handle, possibly creating the tag.

Get a handle used to associate application-defined values with MOAB entities. If the tag does not already exist then flags should contain exactly one of MB_TAG_SPARSE, MB_TAG_DENSE, MB_TAG_MESH unless type is MB_TYPE_BIT, which implies MB_TAG_BIT storage.

Parameters:
nameThe tag name
sizeTag size as number of values of of data type per entity (or number of bytes if MB_TAG_BYTES is passed in flags). If MB_TAG_VARLEN is specified, this value is taken to be the size of the default value if one is specified and is otherwise ignored.
typeThe type of the data (used for IO)
tag_handleOutput: the resulting tag handle.
flagsBitwise OR of values from TagType
default_valueOptional default value for tag.
createdOptional returned boolean indicating that the tag was created.
Returns:
- MB_ALREADY_ALLOCATED if tag exists and MB_TAG_EXCL is specified, or default values do not match (and MB_TAG_ANY or MB_TAG_DFTOK not specified).
  • MB_TAG_NOT_FOUND if tag does not exist and MB_TAG_CREAT is not specified
  • MB_INVALID_SIZE if tag value size is not a multiple of the size of the data type (and MB_TAG_ANY not specified).
  • MB_TYPE_OUT_OF_RANGE invalid or inconsistent parameter
  • MB_VARIABLE_DATA_LENGTH if MB_TAG_VARLEN and default_value is non-null and default_value_size is not specified.

A call to tag_get_handle that includes a default value will fail if the tag already exists with a different default value. A call without a default value will succeed if the tag already exists, regardless of whether or not the existing tag has a default value.

Examples:

Retrieve a handle for an existing tag, returning a non-success error code if the tag does not exist or does not store 1 integer value per entity:

 Tag git_tag;
 mb.tag_get_handle( GLOBAL_ID_TAG_NAME, 1, MB_TYPE_INTEGER, gid_tag );

Get the tag handle, or create it as a dense tag if it does not already exist:

 Tag gid_tag;
 mb.tag_get_handle( GLOBAL_ID_TAG_NAME, 1, MB_TYPE_INTEGER, gid_tag, MB_TAG_CREAT|MB_TAG_BIT );

Create the tag or *fail* if it already exists:

 Tag gid_tag;
 mb.tag_get_handle( GLOBAL_ID_TAG_NAME, 1, MB_TYPE_INTEGER, gid_tag, MB_TAG_EXCL|MB_TAG_DENSE );

Get an existing variable length tag, failing if it does not exist or is not variable-length or does not contain double values.

 Tag vtag;
 mb.tag_get_handle( tag_name, 0, MB_TYPE_DOUBLE, vtag );

Get the same variable-length tag, but create it with a default value if it doesn't exist. Note that if the tag already exists this call will return a non-success error code if the existing tag has a different default value.

 Tag vtag;
 const double default_val = M_PI;
 const int def_val_len = 1;
 mb.tag_get_handle( tag_name, def_val_len, MB_TYPE_DOUBLE, vtag,
                    MB_TAG_SPARSE|MB_TAG_VARLEN|MB_TAG_CREAT, &default_val );

Implemented in moab::Core.

virtual ErrorCode moab::Interface::tag_get_handle ( const char *  name,
int  size,
DataType  type,
Tag tag_handle,
unsigned  flags = 0,
const void *  default_value = 0,
bool *  created = 0 
) [pure virtual]

Get a tag handle, possibly creating the tag.

Get a handle used to associate application-defined values with MOAB entities. If the tag does not already exist then flags should contain exactly one of MB_TAG_SPARSE, MB_TAG_DENSE, MB_TAG_MESH unless type is MB_TYPE_BIT, which implies MB_TAG_BIT storage.

Parameters:
nameThe tag name
sizeTag size as number of values of of data type per entity (or number of bytes if MB_TAG_BYTES is passed in flags). If MB_TAG_VARLEN is specified, this value is taken to be the size of the default value if one is specified and is otherwise ignored.
typeThe type of the data (used for IO)
tag_handleOutput: the resulting tag handle.
flagsBitwise OR of values from TagType
default_valueOptional default value for tag.
createdOptional returned boolean indicating that the tag was created.
Returns:
- MB_ALREADY_ALLOCATED if tag exists and MB_TAG_EXCL is specified, or default values do not match (and MB_TAG_ANY or MB_TAG_DFTOK not specified).
  • MB_TAG_NOT_FOUND if tag does not exist and MB_TAG_CREAT is not specified
  • MB_INVALID_SIZE if tag value size is not a multiple of the size of the data type (and MB_TAG_ANY not specified).
  • MB_TYPE_OUT_OF_RANGE invalid or inconsistent parameter
  • MB_VARIABLE_DATA_LENGTH if MB_TAG_VARLEN and default_value is non-null and default_value_size is not specified.

A call to tag_get_handle that includes a default value will fail if the tag already exists with a different default value. A call without a default value will succeed if the tag already exists, regardless of whether or not the existing tag has a default value.

Examples:

Retrieve a handle for an existing tag, returning a non-success error code if the tag does not exist or does not store 1 integer value per entity:

 Tag git_tag;
 mb.tag_get_handle( GLOBAL_ID_TAG_NAME, 1, MB_TYPE_INTEGER, gid_tag );

Get the tag handle, or create it as a dense tag if it does not already exist:

 Tag gid_tag;
 mb.tag_get_handle( GLOBAL_ID_TAG_NAME, 1, MB_TYPE_INTEGER, gid_tag, MB_TAG_CREAT|MB_TAG_BIT );

Create the tag or *fail* if it already exists:

 Tag gid_tag;
 mb.tag_get_handle( GLOBAL_ID_TAG_NAME, 1, MB_TYPE_INTEGER, gid_tag, MB_TAG_EXCL|MB_TAG_DENSE );

Get an existing variable length tag, failing if it does not exist or is not variable-length or does not contain double values.

 Tag vtag;
 mb.tag_get_handle( tag_name, 0, MB_TYPE_DOUBLE, vtag );

Get the same variable-length tag, but create it with a default value if it doesn't exist. Note that if the tag already exists this call will return a non-success error code if the existing tag has a different default value.

 Tag vtag;
 const double default_val = M_PI;
 const int def_val_len = 1;
 mb.tag_get_handle( tag_name, def_val_len, MB_TYPE_DOUBLE, vtag,
                    MB_TAG_SPARSE|MB_TAG_VARLEN|MB_TAG_CREAT, &default_val );

Implemented in moab::Core.

Examples:
DeformMeshRemap.cpp, DirectAccessNoHoles.cpp, DirectAccessWithHoles.cpp, LloydRelaxation.cpp, LoadPartial.cpp, ReduceExchangeTags.cpp, SetsNTags.cpp, TestErrorHandling.cpp, TestExodusII.cpp, and VisTags.cpp.

Referenced by add_field_value(), moab::GeomTopoTool::add_geo_set(), moab::Coupler::apply_group_norm_factor(), MetisPartitioner::assemble_graph(), ZoltanPartitioner::assemble_graph(), MetisPartitioner::assemble_taggedents_graph(), MetisPartitioner::assemble_taggedsets_graph(), moab::ParallelComm::assign_global_ids(), moab::ScdInterface::assign_global_ids(), moab::ReadNASTRAN::assign_ids(), moab::TempestRemapper::AssociateSrcTargetInOverlap(), moab::ParallelComm::augment_default_sets_with_ghosts(), moab::ScdInterface::box_dims_tag(), moab::ScdInterface::box_periodic_tag(), moab::ScdInterface::box_set_tag(), moab::MeshGeneration::BrickInstance(), moab::ReadRTT::build_moab(), build_tree(), check_consistent_ids(), moab::GeomTopoTool::check_edge_sense_tags(), moab::NCHelperMPAS::check_existing_mesh(), moab::GeomTopoTool::check_face_sense_tag(), moab::GeomTopoTool::check_geom_tag(), check_geometric_set(), moab::GeomTopoTool::check_gid_tag(), moab::ParallelComm::check_global_ids(), moab::WriteHDF5Parallel::check_serial_tag_data(), check_tag(), check_tag_values(), moab::Skinner::classify_2d_boundary(), moab::ScdNCWriteHelper::collect_mesh_info(), moab::NCWriteHelper::collect_variable_data(), compare(), compare_conn(), compare_sets(), compare_tags(), moab::SmoothCurve::compute_control_points_on_boundary_edges(), compute_lagrange_mesh_on_sphere(), compute_normals(), moab::SmoothFace::compute_tangents_for_each_edge(), moab::SmoothCurve::compute_tangents_for_each_edge(), compute_tracer_case1(), moab::TempestRemapper::ComputeOverlapMesh(), moab::DualTool::construct_dual_hyperplanes(), moab::Tqdcfr::convert_nodesets_sidesets(), moab::TempestRemapper::ConvertMOABMesh_WithSortedEntitiesBySource(), moab::TempestRemapper::ConvertMOABMeshToTempest_Private(), moab::TempestRemapper::ConvertTempestMeshToMOAB_Private(), create(), create_coarse_mesh(), moab::NCHelper::create_conventional_tags(), moab::NCHelper::create_dummy_variables(), moab::ReadIDEAS::create_elements(), create_fine_mesh(), moab::ReadCGM::create_group_entsets(), create_hexes_and_verts(), moab::ParallelComm::create_iface_pc_links(), create_input_file(), create_lagr_mesh(), moab::ReadNASTRAN::create_materials(), moab::NCHelperHOMME::create_mesh(), moab::NCHelperMPAS::create_mesh(), create_mesh(), moab::ReadParallel::create_partition_sets(), create_patch(), moab::ScdNCHelper::create_quad_coordinate_tag(), moab::ReadCGNS::create_sets(), moab::ReadGmsh::create_sets(), create_shared_grid_3d(), moab::create_span_quads(), moab::ReadHDF5::create_tag(), moab::RefinerTagManager::create_tag_internal(), moab::ReadMCNP5::create_tags(), create_tree(), moab::Coupler::create_tuples(), moab::ReadIDEAS::create_vertices(), moab::FBEngine::create_volume_with_direction(), moab::Intx2Mesh::createTags(), moab::deep_copy_set(), moab::deep_copy_set_with_quads(), DeformMeshRemap::deform_master(), moab::ReadParallel::delete_nonlocal_entities(), moab::FBEngine::delete_smooth_tags(), moab::Intx2Mesh::DetermineOrderedNeighbors(), moab::GeomTopoTool::dimension(), do_file(), do_ray_fire_test(), do_test_mode(), moab::DualTool::DualTool(), moab::GeomTopoTool::duplicate_model(), moab::enforce_convexity(), moab::SmoothCurve::evaluate_smooth_edge(), moab::WriteHDF5Parallel::exchange_file_ids(), moab::ParallelComm::exchange_tags(), find_block(), moab::Skinner::find_geometric_skin(), moab::GeomTopoTool::find_geomsets(), moab::Skinner::find_inferred_edges(), DeformMeshRemap::find_other_sets(), find_sideset(), moab::Skinner::find_skin_vertices(), moab::WriteSLAC::gather_interior_exterior(), moab::WriteTemplate::gather_mesh_information(), moab::WriteSLAC::gather_mesh_information(), moab::WriteNCDF::gather_mesh_information(), gather_one_cell_var(), generate_mesh(), geom_id_by_handle(), moab::GeomTopoTool::GeomTopoTool(), get_all_handles(), moab::Tree::get_box_tag(), moab::ReadCCMIO::get_dbl_option(), get_departure_grid(), moab::DualTool::get_dual_hyperplanes(), get_expected_ghosts(), moab::Coupler::get_group_integ_vals(), get_imesh_mesh(), moab::ReadCCMIO::get_int_option(), moab::ParallelData::get_interface_sets(), get_intersection_weights(), moab::Coupler::get_matching_entities(), moab::Tqdcfr::get_names(), moab::WriteTemplate::get_neuset_elems(), moab::WriteSLAC::get_neuset_elems(), moab::WriteCCMIO::get_neuset_elems(), moab::ParallelData::get_partition_sets(), moab::ParallelComm::get_pcomm(), get_root(), get_sharing_processors(), moab::WriteNCDF::get_sideset_elems(), moab::ReadCCMIO::get_str_option(), moab::AxisBox::get_tag(), moab::AffineXform::get_tag(), moab::ReadABAQUS::get_tag(), get_tag(), moab::WriteHDF5::get_tag_size(), moab::NCHelper::get_tag_to_nonset(), moab::NCHelper::get_tag_to_set(), smoab::Interface::getMoabTag(), moab::FBEngine::getNumOfType(), moab::ScdInterface::global_box_dims_tag(), moab::GeomTopoTool::global_id(), iMOAB_DefineTagStorage(), iMOAB_Initialize(), iMOAB_ResolveSharedEntities(), ZoltanPartitioner::include_closure(), init(), moab::SmoothFace::init_gradient(), moab::NCHelperFV::init_mesh_vals(), moab::NCHelperEuler::init_mesh_vals(), moab::BSPTree::init_tags(), moab::LloydSmoother::initialize(), moab::Skinner::initialize(), initialize_area_and_tracer(), moab::Coupler::initialize_spectral_elements(), moab::DataCoupler::interpolate(), moab::Coupler::interpolate(), moab::Tqdcfr::interpret_acis_records(), moab::Intx2Mesh::Intx2Mesh(), moab::ReadCGNS::load_file(), moab::ReadParallel::load_file(), moab::ReadGmsh::load_file(), moab::ReadNC::load_file(), moab::ReadSms::load_file_impl(), moab::ReadCCMIO::load_metadata(), main(), make_set(), moab::AdaptiveKDTree::make_tag(), manufacture_lagrange_mesh_on_sphere(), mb_bit_tags_test(), mb_common_tag_test(), mb_mesh_set_appends(), mb_type_is_maxtype_test(), mb_vertex_tag_test(), mb_write_mesh_test(), moab::MergeMesh::merge_all(), moab::MergeMesh::merge_entities(), moab::MergeMesh::merge_using_integer_tag(), merge_with_tag_test(), multiple_loads_of_same_file(), smoab::Interface::name(), moab::Coupler::normalize_subset(), overlap_write_geometry(), moab::ParallelComm::pack_sets(), parallel_create_mesh(), moab::Tqdcfr::parse_acis_attribs(), moab::ReadTetGen::parse_attr_list(), parse_tag_create(), parse_tag_spec(), moab::ScdInterface::part_method_tag(), moab::ParallelComm::partition_tag(), moab::ParallelComm::pcomm_tag(), perform_lloyd_relaxation(), moab::LloydSmoother::perform_smooth(), print_partitioned_entities(), moab::WriteHDF5Parallel::print_shared_sets(), moab::print_type_sets(), moab::WriteNC::process_conventional_tags(), process_partition_file(), moab::Tqdcfr::process_sideset_10(), moab::Tqdcfr::process_sideset_11(), moab::ReadDamsel::process_tags(), moab::ParallelComm::pstatus_tag(), moab::Tqdcfr::put_into_set(), put_random_field(), moab::putElementField(), moab::putVertexField(), quads_to_tris(), moab::Tqdcfr::read_block(), read_cube_curves_test(), read_cube_surfs_test(), read_cube_vols_test(), read_cylcube_curve_senses_test(), read_cylcube_groups_test(), read_cylcube_surf_senses_test(), moab::ReadTetGen::read_elem_file(), DeformMeshRemap::read_file(), moab::Tqdcfr::read_group(), moab::Tqdcfr::ModelEntry::read_header_info(), moab::Tqdcfr::GeomHeader::read_info_header(), moab::Tqdcfr::GroupHeader::read_info_header(), moab::Tqdcfr::BlockHeader::read_info_header(), moab::Tqdcfr::NodesetHeader::read_info_header(), moab::Tqdcfr::SidesetHeader::read_info_header(), moab::ReadTetGen::read_node_file(), moab::Tqdcfr::read_nodes(), moab::Tqdcfr::read_nodeset(), read_one_cell_var(), moab::Tqdcfr::read_sideset(), moab::ReadNCDF::read_sidesets(), read_tree(), moab::ReadCCMIO::ReadCCMIO(), moab::ReadCGM::ReadCGM(), moab::ReadNCDF::ReadNCDF(), moab::ReadOBJ::ReadOBJ(), moab::ReadRTT::ReadRTT(), moab::ParallelComm::reduce_tags(), moab::RefinerTagManager::RefinerTagManager(), regression_ghost_tag_exchange_no_default(), report_nsets(), resolve_and_exchange(), moab::ParallelComm::resolve_shared_ents(), moab::ParallelComm::resolve_shared_sets(), moab::GeomTopoTool::restore_topology_from_adjacency(), run_local_smoother(), save_tree(), moab::GeomTopoTool::separate_by_dimension(), moab::FBEngine::set_default_neumann_tags(), moab::FBEngine::set_neumann_tags(), moab::ParallelComm::set_partitioning(), moab::ElemEvaluator::set_tag(), moab::GeomTopoTool::setup_implicit_complement(), moab::ParallelComm::sharedh_tag(), moab::ParallelComm::sharedhs_tag(), moab::ParallelComm::sharedp_tag(), moab::ParallelComm::sharedps_tag(), moab::SharedSetData::SharedSetData(), moab::SpectralMeshTool::spectral_order_tag(), moab::SpectralMeshTool::spectral_vertices_tag(), moab::ReadHDF5::store_sets_file_ids(), tag_elements(), moab::OrientedBox::tag_handle(), tag_time(), tag_triangles(), tag_vertices(), test_assign_global_ids(), test_bc_sets(), test_blocks(), test_check_groups(), test_check_meshsets(), test_create_tag(), test_create_var_len_tag(), test_cubit14(), test_delete_type_tag(), test_element(), test_elements_on_several_procs(), test_eval(), test_gather_onevar(), test_gather_sets_common(), test_gather_sets_ranged(), test_geometric_sets(), test_ghost_elements(), test_ghost_tag_exchange(), test_global_opaque_common(), test_global_value_common(), test_ho_elements(), test_moab_v3_poly_format(), test_pack_bit_tag_data(), test_pack_tag_data_default_value(), test_pack_tag_data_dense(), test_pack_tag_data_sparse(), test_pack_tag_handle_data(), test_pack_variable_length_tag(), test_read_adjacencies(), test_read_all(), test_read_bc_sets(), test_read_bit_tag(), test_read_containing_sets(), test_read_coord_vars(), test_read_elements_common(), test_read_eul_all(), test_read_eul_nomesh(), test_read_eul_novars(), test_read_eul_onetimestep(), test_read_eul_onevar(), test_read_fv_all(), test_read_fv_nomesh(), test_read_fv_novars(), test_read_fv_onetimestep(), test_read_fv_onevar(), test_read_geom_set(), test_read_global_tags(), test_read_handle_tag(), test_read_hexes(), test_read_int_tag(), test_read_material_on_nodes(), test_read_material_set(), test_read_material_set1(), test_read_material_set2(), test_read_no_mixed_elements(), test_read_nodes(), test_read_nodes_common(), test_read_nomesh(), test_read_nothing_common(), test_read_novars(), test_read_one_set_polyhedra(), test_read_onetimestep(), test_read_onevar(), test_read_physical_set(), test_read_prisms(), test_read_quads(), test_read_real_tag(), test_read_set_sets(), test_read_sets_common(), test_read_sides(), test_read_tags(), test_read_tets(), test_reduce_tag_explicit_dest(), test_reduce_tag_failures(), test_reduce_tags(), test_root_sets_resize(), test_sequences_after_ghosting(), test_set_flags(), test_shared_sets(), test_tag_iterate_common(), test_tag_iterate_invalid(), test_tree(), test_var_length_big_data(), test_var_length_data_common(), test_var_length_handle_tag(), test_var_length_no_data(), test_var_length_parallel(), test_vertices(), test_write_free_nodes(), test_write_read_many_tags(), test_write_shared_sets(), test_write_unbalanced(), testD(), TestErrorHandling_4(), moab::Tqdcfr::Tqdcfr(), moab::WriteCCMIO::transform_coords(), moab::DualTool::traverse_hyperplane(), moab::TreeNodePrinter::TreeNodePrinter(), moab::SmoothCurve::u_from_position(), moab::ParallelComm::unpack_sets(), moab::ParallelComm::unpack_tags(), update_density(), moab::NCHelper::update_time_tag_vals(), moab::Intx2MeshOnSphere::update_tracer_data(), update_tracer_test(), moab::ReadVtk::vtk_read_tag_data(), MetisPartitioner::write_aggregationtag_partition(), DeformMeshRemap::write_and_save(), moab::WriteCCMIO::write_cells_and_faces(), moab::WriteCCMIO::write_dbl_option(), moab::WriteGmsh::write_file(), moab::WriteNC::write_file(), write_file(), write_geometry(), write_id_test_file(), moab::WriteCCMIO::write_int_option(), moab::WriteTemplate::write_nodes(), moab::WriteSLAC::write_nodes(), moab::WriteNCDF::write_nodes(), MetisPartitioner::write_partition(), ZoltanPartitioner::write_partition(), moab::WriteCCMIO::write_problem_description(), moab::WriteCCMIO::write_str_option(), moab::WriteAns::WriteAns(), moab::WriteCCMIO::WriteCCMIO(), moab::WriteDamsel::WriteDamsel(), moab::WriteGMV::WriteGMV(), moab::WriteNCDF::WriteNCDF(), moab::WriteSLAC::WriteSLAC(), and moab::WriteTemplate::WriteTemplate().

virtual ErrorCode moab::Interface::tag_get_handle ( const char *  name,
int  size,
DataType  type,
Tag tag_handle,
unsigned  flags = 0,
const void *  default_value = 0 
) const [pure virtual]

same as non-const version, except that MB_TAG_CREAT flag is ignored.

Implemented in moab::Core.

virtual ErrorCode moab::Interface::tag_get_handle ( const char *  tag_name,
Tag tag_handle 
) const [pure virtual]

Gets the tag handle corresponding to a name.

If a tag of that name does not exist, returns MB_TAG_NOT_FOUND

Parameters:
tag_nameName of the desired tag.
tag_handleTag handle corresponding to tag_name

Implemented in moab::Core.

virtual ErrorCode moab::Interface::tag_get_length ( const Tag  tag,
int &  length 
) const [pure virtual]

Get the array length of a tag.

Get the size of the specified tag, in as the number of values of the basic type (e.g. number of integer values for each tag value if the data type is MB_TYPE_INTEGER). Gives number of bits for bit tags and is the same as tag_get_bytes for MB_TYPE_OPAQUE tags.

Parameters:
tagHandle of the desired tag.
lengthSize of the specified tag
Returns:
- MB_TAG_NOT_FOUND for invalid tag handles
  • MB_VARIABLE_DATA_LENGTH for variable-length tags
  • MB_SUCCESS otherwise

Implemented in moab::Core.

Examples:
VisTags.cpp.

Referenced by moab::WriteHDF5Parallel::append_serial_tag_data(), check_handle_tag_type(), moab::WriteHDF5Parallel::check_serial_tag_data(), check_tag(), check_tag_values(), compare_tags(), moab::WriteHDF5Parallel::create_tag_tables(), moab::ParallelData::get_interface_sets(), moab::WriteHDF5::get_tag_size(), iMOAB_GetDoubleTagStorage(), iMOAB_GetIntTagStorage(), iMOAB_SetDoubleTagStorage(), iMOAB_SetIntTagStorage(), moab::WriteDamsel::init_tag_info(), moab::DataCoupler::interpolate(), main(), parse_tag_create(), parse_tag_spec(), moab::WriteNC::process_conventional_tags(), smoab::DataSetConverter::readDenseTags(), remove_var_len_tags(), moab::WriteHDF5::serial_create_file(), moab::ElemEvaluator::set_tag(), moab::ElemEvaluator::set_tag_handle(), tag_type_string(), test_create_tag(), test_create_var_len_tag(), test_delete_type_tag(), test_pack_bit_tag_data(), test_pack_tag_data_default_value(), test_pack_tag_data_dense(), test_pack_tag_data_sparse(), test_pack_tag_handle_data(), test_pack_variable_length_tag(), test_read_bit_tag(), test_read_handle_tag(), test_read_int_tag(), test_read_real_tag(), test_var_length_parallel(), test_write_read_many_tags(), moab::ParallelComm::unpack_tags(), moab::Intx2MeshOnSphere::update_tracer_data(), moab::WriteVtk::write_bit_tag(), moab::WriteVtk::write_tag(), and moab::WriteVtk::write_tags().

virtual ErrorCode moab::Interface::tag_get_tags ( std::vector< Tag > &  tag_handles) const [pure virtual]

Get handles for all tags defined in the mesh instance.

Get handles for all tags defined on the mesh instance.

Parameters:
tag_handlesSTL vector of all tags

Implemented in moab::Core.

Referenced by moab::ParallelComm::get_tag_send_list(), moab::WriteDamsel::init_tag_info(), print_memory_stats(), save_and_load_on_root(), test_delete_type_tag(), and moab::WriteCGNS::write_file().

virtual ErrorCode moab::Interface::tag_get_tags_on_entity ( const EntityHandle  entity,
std::vector< Tag > &  tag_handles 
) const [pure virtual]

Get handles for all tags defined on this entity.

Get handles for all tags defined on this entity; if zero, get all tags defined on mesh instance

Parameters:
entityEntity for which you want tags
tag_handlesSTL vector of all tags defined on entity

Implemented in moab::Core.

Referenced by mb_vertex_tag_test(), smoab::DataSetConverter::readProperties(), test_delete_type_tag(), and test_get_entity_tags().

virtual ErrorCode moab::Interface::tag_iterate ( Tag  tag_handle,
Range::const_iterator  begin,
Range::const_iterator  end,
int &  count,
void *&  data_ptr,
bool  allocate = true 
) [pure virtual]

Access tag data via direct pointer into contiguous blocks.

Iteratively obtain direct access to contiguous blocks of tag storage. This function cannot be used with bit tags because of the compressed bit storage. This function cannot be used with variable length tags because it does not provide a mechanism to determine the length of the value for each entity. This function may be used with sparse tags, but if it is used, it will return data for a single entity at a time.

Parameters:
tag_handleThe handle of the tag for which to access data
iterThe first entity for which to return data.
endOne past the last entity for which data is desired.
countThe number of entities for which data was returned
data_ptrOutput: pointer to tag storage.
allocateIf true, space for this tag will be allocated, if not it wont

If this function is called for entities for which no tag value has been set, but for which a default value exists, it will force the allocation of explicit storage for each such entity even though MOAB would normally not explicitly store tag values for such entities.

:

 Range ents; // range to iterate over
 Tag tag; // tag for which to access data
 int bytes;
 ErrorCode err = mb.tag_get_size( tag, bytes );
 if (err) { ... }
 
 ...
 Range::iterator iter = ents.begin();
 while (iter != ents.end()) {
   int count;
    // get contiguous block of tag dat
   void* ptr;
   err = mb.tag_iterate( tag, iter, ents.end(), count, ptr );
   if (err) { ... }
    // do something with tag data
   process_Data( ptr, count );
    // advance to next block of data
   iter += count;
 }
   *

Implemented in moab::Core.

Examples:
DirectAccessNoHoles.cpp, DirectAccessWithHoles.cpp, TestErrorHandling.cpp, and VisTags.cpp.

Referenced by add_field_value(), moab::ScdInterface::assign_global_ids(), compute_lagrange_mesh_on_sphere(), compute_velocity_case1(), moab::NCHelperGCRM::create_gather_set_vertices(), moab::NCHelperMPAS::create_gather_set_vertices(), moab::NCHelperMPAS::create_local_cells(), moab::NCHelperMPAS::create_local_edges(), moab::NCHelperGCRM::create_local_edges(), moab::NCHelperMPAS::create_local_vertices(), moab::NCHelperGCRM::create_local_vertices(), moab::NCHelperHOMME::create_mesh(), moab::ScdNCHelper::create_mesh(), moab::NCHelperGCRM::create_padded_local_cells(), moab::NCHelperMPAS::create_padded_local_cells(), moab::ScdNCHelper::create_quad_coordinate_tag(), moab::SpectralMeshTool::create_spectral_elems(), moab::ParallelComm::gather_data(), main(), manufacture_lagrange_mesh_on_sphere(), moab::ReadDamsel::process_entity_tags(), query_elem_to_vert_direct(), query_vert_to_elem_direct(), moab::ScdNCHelper::read_scd_variables_to_nonset_allocate(), moab::NCHelperMPAS::read_ucd_variables_to_nonset(), moab::NCHelperMPAS::read_ucd_variables_to_nonset_allocate(), moab::NCHelperGCRM::read_ucd_variables_to_nonset_allocate(), moab::NCHelperHOMME::read_ucd_variables_to_nonset_allocate(), tag_time(), test_iterates(), test_sequences_after_ghosting(), test_tag_iterate_common(), test_tag_iterate_invalid(), TestErrorHandling_4(), update_density(), moab::Intx2MeshOnSphere::update_tracer_data(), and moab::ScdNCWriteHelper::write_nonset_variables().

virtual ErrorCode moab::Interface::tag_set_by_ptr ( Tag  tag_handle,
const EntityHandle entity_handles,
int  num_entities,
void const *const *  tag_data,
const int *  tag_sizes = 0 
) [pure virtual]

Set tag data given an array of pointers to tag values.

For a tag, set the values for a list of passed entity handles.

Note:
This function may not be used for bit tags.
Parameters:
tag_handleThe tag
entity_handlesAn array of entity handles for which to set tag values.
num_entitiesThe length of the 'entity_handles' array.
tag_dataAn array of 'const void*'. Array must be at least 'num_entitities' long. Array is expected to contain pointers to tag values for the corresponding EntityHandle in 'entity_handles'.
tag_sizesThe length of each tag value. Optional for fixed-length tags. Required for variable-length tags.

Implemented in moab::Core.

Referenced by moab::NCHelper::create_conventional_tags(), moab::NCHelper::create_dummy_variables(), create_mesh(), moab::ReadHDF5::create_tag(), moab::NCHelperFV::init_mesh_vals(), moab::NCHelperEuler::init_mesh_vals(), moab::Tqdcfr::read_block(), moab::Tqdcfr::read_nodeset(), moab::ReadNCDF::read_nodesets(), moab::ReadNCDF::read_qa_records(), moab::Tqdcfr::read_sideset(), moab::ReadNCDF::read_sidesets(), moab::NCHelper::read_variables_to_set(), moab::GeomTopoTool::set_sense(), test_get_set(), test_get_set_variable_length(), test_get_set_variable_length_mesh(), test_global_opaque_common(), test_global_value_common(), test_pack_variable_length_tag(), test_var_length_big_data(), test_var_length_data_common(), test_var_length_handle_tag(), test_var_length_parallel(), moab::ParallelComm::unpack_tags(), and moab::NCHelper::update_time_tag_vals().

virtual ErrorCode moab::Interface::tag_set_by_ptr ( Tag  tag_handle,
const Range entity_handles,
void const *const *  tag_data,
const int *  tag_sizes = 0 
) [pure virtual]

Set tag data given an array of pointers to tag values.

For a tag, set the values for a list of passed entity handles.

Note:
This function may not be used for bit tags.
Parameters:
tag_handleThe tag
entity_handlesThe entity handles for which to set tag values.
tag_dataAn array of 'const void*'. Array is expected to contain pointers to tag values for the corresponding EntityHandle in 'entity_handles'.
tag_sizesThe length of each tag value. Optional for fixed-length tags. Required for variable-length tags.

Implemented in moab::Core.

virtual ErrorCode moab::Interface::tag_set_data ( Tag  tag_handle,
const EntityHandle entity_handles,
int  num_entities,
const void *  tag_data 
) [pure virtual]

Set the value of the indicated tag on the specified entities in the specified vector.

Set the value of the indicated tag on the specified entities; tag_data contains the values, one value per entity in entity_handles.

Note:
For bit tags, tag_data must contain one byte per entity. For each entity, the tag bits will be read from the lower bits of the corresponding byte.
Parameters:
tag_handleTag whose values are being set
entity_handles1d vector of entity handles whose tag values are being set
num_entitiesNumber of entities in 1d vector of entity handles
tag_dataPointer to memory holding tag values to be set, one entry per entity handle

Implemented in moab::Core.

Examples:
DeformMeshRemap.cpp, LloydRelaxation.cpp, and ReduceExchangeTags.cpp.

Referenced by moab::Skinner::add_adjacency(), moab::ReadABAQUS::add_entity_set(), moab::GeomTopoTool::add_geo_set(), moab::DualTool::add_graphics_point(), moab::ParallelComm::add_pcomm(), moab::Coupler::apply_group_norm_factor(), MetisPartitioner::assemble_taggedents_graph(), MetisPartitioner::assemble_taggedsets_graph(), moab::RefinerTagManager::assign_element_tags(), moab::ParallelComm::assign_global_ids(), moab::MeshOutputFunctor::assign_tags(), moab::ParallelComm::augment_default_sets_with_ghosts(), moab::ReadMCNP5::average_with_existing_tally(), moab::MeshGeneration::BrickInstance(), build_cube(), moab::ReadRTT::build_moab(), build_new_surface(), moab::OrientedBoxTreeTool::build_sets(), build_tree(), moab::OrientedBoxTreeTool::build_tree(), moab::ParallelComm::check_clean_iface(), moab::Skinner::classify_2d_boundary(), moab::SmoothCurve::compute_control_points_on_boundary_edges(), moab::SmoothFace::compute_control_points_on_edges(), moab::SmoothFace::compute_internal_control_points_on_facets(), moab::SmoothFace::compute_tangents_for_each_edge(), moab::SmoothCurve::compute_tangents_for_each_edge(), moab::ReadCCMIO::construct_cells(), moab::DualTool::construct_dual_cells(), moab::DualTool::construct_dual_edges(), moab::DualTool::construct_dual_faces(), moab::DualTool::construct_dual_vertex(), moab::DualTool::construct_new_hyperplane(), moab::GeomTopoTool::construct_vertex_ranges(), moab::Tqdcfr::convert_nodesets_sidesets(), moab::TempestRemapper::ConvertTempestMeshToMOAB_Private(), moab::RefinerTagManager::copy_gid(), create(), moab::ScdInterface::create_box_set(), create_coarse_mesh(), moab::NCHelper::create_conventional_tags(), moab::ReadIDEAS::create_elements(), moab::ReadGmsh::create_elements(), moab::ReadMCNP5::create_elements(), moab::ReadCGM::create_entity_sets(), create_fine_mesh(), moab::ReadRTT::create_group(), moab::ReadCGM::create_group_entsets(), create_hexes_and_verts(), moab::ParallelComm::create_iface_pc_links(), create_input_file(), moab::ReadABAQUS::create_instance_of_part(), moab::ParallelComm::create_interface_sets(), create_lagr_mesh(), moab::ReadNASTRAN::create_materials(), moab::NCHelperHOMME::create_mesh(), moab::NCHelperMPAS::create_mesh(), create_mesh(), moab::ReadOBJ::create_new_group(), moab::ReadOBJ::create_new_object(), moab::ParallelComm::create_part(), moab::ReadParallel::create_partition_sets(), create_patch(), moab::Tree::create_root(), moab::ScdInterface::create_scd_sequence(), moab::ReadCGNS::create_sets(), moab::ReadGmsh::create_sets(), create_shared_grid_3d(), moab::create_span_quads(), moab::ReadHDF5::create_tag(), create_tree(), moab::FBEngine::create_volume_with_direction(), moab::Intx2Mesh::createTags(), moab::deep_copy_set(), moab::deep_copy_set_with_quads(), DeformMeshRemap::deform_master(), moab::DualTool::delete_dual_entities(), moab::Intx2Mesh::DetermineOrderedNeighbors(), do_test_mode(), moab::GeomTopoTool::duplicate_model(), moab::enforce_convexity(), moab::WriteHDF5Parallel::exchange_file_ids(), moab::ParallelComm::exchange_tags(), fill_coord_on_edges(), moab::MergeMesh::find_merged_to(), moab::Skinner::find_skin_vertices(), moab::Intx2MeshInPlane::findNodes(), moab::Intx2MeshOnSphere::findNodes(), moab::IntxRllCssphere::findNodes(), fix_surface_senses(), moab::WriteSLAC::gather_interior_exterior(), moab::WriteCCMIO::gather_matset_info(), moab::WriteTemplate::gather_mesh_information(), moab::WriteSLAC::gather_mesh_information(), moab::WriteNCDF::gather_mesh_information(), generate_mesh(), moab::ReadRTT::generate_topology(), get_barycenters(), moab::ReadCCMIO::get_dbl_option(), moab::WriteCCMIO::get_gids(), get_gnomonic_plane(), moab::DualTool::get_graphics_points(), get_imesh_mesh(), moab::ReadCCMIO::get_int_option(), get_intersection_weights(), get_linear_reconstruction(), moab::Tqdcfr::get_names(), moab::ParallelComm::get_pcomm(), moab::ReadSms::get_set(), moab::ReadCCMIO::get_str_option(), iMOAB_CreateElements(), iMOAB_ResolveSharedEntities(), iMOAB_SetDoubleTagStorage(), iMOAB_SetIntTagStorage(), ZoltanPartitioner::include_closure(), moab::AdaptiveKDTree::init(), moab::SmoothFace::init_bezier_edge(), moab::SmoothFace::init_gradient(), moab::NCHelperFV::init_mesh_vals(), moab::NCHelperEuler::init_mesh_vals(), moab::LloydSmoother::initialize(), moab::Skinner::initialize(), initialize_area_and_tracer(), moab::DataCoupler::interpolate(), moab::Intx2Mesh::intersect_meshes(), TriTagger::leaf(), VtxTagger::leaf(), LeafHexer::leaf(), moab::ReadCGNS::load_file(), moab::ReadGmsh::load_file(), moab::ReadParallel::load_file(), moab::ReadCGM::load_file(), moab::ReadNC::load_file(), moab::ReadSms::load_file_impl(), moab::ReadCCMIO::load_matset_data(), moab::ReadCCMIO::load_metadata(), moab::ReadCCMIO::load_neuset_data(), moab::ReadMCNP5::load_one_file(), main(), make_set(), mb_bit_tags_test(), mb_common_tag_test(), mb_mesh_set_appends(), mb_type_is_maxtype_test(), mb_vertex_tag_test(), mb_write_mesh_test(), moab::MergeMesh::merge_using_integer_tag(), normalize_elems(), overlap_write_geometry(), parallel_create_mesh(), moab::Tqdcfr::parse_acis_attribs(), perform_lloyd_relaxation(), moab::LloydSmoother::perform_smooth(), process_partition_file(), moab::Tqdcfr::process_sideset_10(), moab::Tqdcfr::process_sideset_11(), moab::Tqdcfr::put_into_set(), put_random_field(), moab::putElementField(), moab::putVertexField(), query_elem_to_vert(), query_elem_to_vert_iters(), query_struct_elem_to_vert(), query_vert_to_elem(), query_vert_to_elem_iters(), moab::ReadHDF5::read_dense_tag(), moab::ReadTetGen::read_elem_file(), moab::ReadABAQUS::read_element_list(), moab::ReadABAQUS::read_element_set(), moab::ReadNCDF::read_elements(), moab::Tqdcfr::read_elements(), moab::ReadCCMIO::read_faces(), moab::ReadCCMIO::read_gids_and_types(), moab::ReadNCDF::read_global_ids(), moab::Tqdcfr::read_group(), moab::Tqdcfr::GeomHeader::read_info_header(), moab::Tqdcfr::GroupHeader::read_info_header(), moab::Tqdcfr::BlockHeader::read_info_header(), moab::Tqdcfr::NodesetHeader::read_info_header(), moab::Tqdcfr::SidesetHeader::read_info_header(), moab::ReadTetGen::read_node_file(), moab::ReadABAQUS::read_node_list(), moab::ReadABAQUS::read_node_set(), moab::Tqdcfr::read_nodes(), moab::ReadNCDF::read_nodesets(), moab::ReadNCDF::read_sidesets(), moab::ReadABAQUS::read_solid_section(), moab::ReadHDF5::read_sparse_tag(), moab::ReadCCMIO::read_vertices(), recursive_build_tree(), moab::ParallelComm::reduce_tags(), moab::ParallelComm::remove_pcomm(), replace_surface(), resolve_and_exchange(), moab::GeomTopoTool::restore_topology_from_adjacency(), moab::GeomTopoTool::restore_topology_from_geometric_inclusion(), save_tree(), moab::FBEngine::separate(), set_bit_data(), moab::FBEngine::set_default_neumann_tags(), set_density(), moab::DualTool::set_dual_surface_or_curve(), moab::RefinerTagManager::set_gid(), moab::ReadMCNP5::set_header_tags(), moab::FBEngine::set_neumann_tags(), moab::SharedSetData::set_owner(), moab::ParallelComm::set_partitioning(), moab::ParallelComm::set_pstatus_entities(), moab::GeomTopoTool::set_sense(), moab::RefinerTagManager::set_sharing(), moab::ParallelComm::set_sharing_data(), moab::SharedSetData::set_sharing_procs(), moab::BSPTree::set_split_plane(), moab::AdaptiveKDTree::set_split_plane(), moab::GeomTopoTool::set_surface_senses(), moab::ReadMCNP5::set_tally_tags(), moab::BSPTree::set_tree_box(), moab::GeomTopoTool::setup_implicit_complement(), moab::ReadHDF5::store_file_ids(), moab::ReadHDF5::store_sets_file_ids(), summarize_cell_volume_change(), tag_depth(), tag_elements(), moab::ParallelComm::tag_iface_entities(), moab::ParallelComm::tag_shared_verts(), tag_time(), tag_vertices(), test_assign_global_ids(), test_bit_tag_big(), test_delete_bit_data(), test_delete_tag_data(), test_delete_type_tag(), test_eval(), test_gather_sets_common(), test_gather_sets_ranged(), test_get_by_tag(), test_get_by_tag_value(), test_get_by_tag_value_dense(), test_get_entity_tags(), test_get_ents_with_default_value(), test_get_set(), test_get_set_bit(), test_ghost_tag_exchange(), test_iterates(), test_mesh_value(), test_pack_bit_tag_data(), test_pack_tag_data_default_value(), test_pack_tag_data_dense(), test_pack_tag_data_sparse(), test_pack_tag_handle_data(), test_read_adjacencies(), test_read_nodes_common(), test_read_nothing_common(), test_read_one_set_polyhedra(), test_read_set_sets(), test_read_sides(), test_reduce_tag_explicit_dest(), test_reduce_tags(), test_set_flags(), test_tag_iterate_common(), test_write_free_nodes(), test_write_unbalanced(), moab::DualTool::traverse_hyperplane(), moab::ParallelComm::unpack_sets(), moab::ParallelComm::unpack_tags(), update_density(), moab::ParallelComm::update_remote_data_old(), moab::Intx2MeshOnSphere::update_tracer_data(), update_tracer_test(), moab::ReadVtk::vtk_read_tag_data(), MetisPartitioner::write_aggregationtag_partition(), moab::WriteCCMIO::write_cells_and_faces(), moab::WriteNCDF::write_file(), write_geometry(), write_id_test_file(), MetisPartitioner::write_partition(), ZoltanPartitioner::write_partition(), DeformMeshRemap::write_to_coords(), and moab::ScdBox::~ScdBox().

virtual ErrorCode moab::Interface::tag_set_data ( Tag  tag_handle,
const Range entity_handles,
const void *  tag_data 
) [pure virtual]

Set the value of the indicated tag on the specified entities in the specified range.

Identical to previous function, except entities are specified using a range instead of a 1d vector.

Parameters:
tag_handleTag whose values are being set
entity_handlesRange of entity handles whose tag values are being set
tag_dataPointer to memory holding tag values to be set, one entry per entity handle

Implemented in moab::Core.

virtual EntityType moab::Interface::type_from_handle ( const EntityHandle  handle) const [pure virtual]

Returns the entity type of an EntityHandle.

Returns the EntityType (ie, MBVERTEX, MBQUAD, MBHEX ) of handle.

Parameters:
handleThe EntityHandle you want to find the entity type of.
Returns:
type The entity type of handle.

Example:

        EntityType type = type_from_handle( handle); 
        if( type == MBHEX ) ...  

Implemented in moab::Core.

Examples:
StructuredMeshSimple.cpp.

Referenced by moab::FBEngine::BreakTriangle2(), moab::DualTool::check_1d_loop_edge(), check_common_vertex(), moab::DualTool::check_dual_equiv_edges(), moab::ParallelComm::check_local_shared(), moab::GeomTopoTool::check_model(), check_parallel_read(), check_point_in_triangles(), moab::Skinner::classify_2d_boundary(), compare_sets(), compare_tags(), moab::FBEngine::compute_intersection_points(), moab::DualTool::construct_dual(), moab::GeomTopoTool::construct_obb_tree(), moab::ReadCCMIO::create_cell_from_faces(), moab::ReadABAQUS::create_instance_of_part(), moab::ParallelComm::create_interface_sets(), create_lagr_mesh(), moab::SpatialLocator::create_tree(), moab::DataCoupler::DataCoupler(), moab::deep_copy_set(), moab::DualTool::delete_dual_entities(), smoab::Interface::entityType(), moab::DualTool::face_shrink(), moab::ElemEvaluator::find_containing_entity(), moab::Skinner::find_match(), moab::Skinner::find_skin_noadj(), moab::DualTool::foc_get_ents(), moab::WriteCCMIO::gather_matset_info(), moab::WriteTemplate::gather_mesh_information(), moab::WriteSLAC::gather_mesh_information(), moab::GeomTopoTool::geometrize_surface_set(), moab::MeshTopoUtil::get_average_position(), moab::DualTool::get_cell_points(), moab::DualTool::get_dual_entities(), get_ents(), moab::EvalSet::get_eval_set(), moab::DualTool::get_graphics_points(), moab::Coupler::get_group_integ_vals(), moab::Tqdcfr::get_mesh_entities(), moab::DualTool::get_radial_dverts(), iMOAB_GetBlockInfo(), moab::Coupler::interp_field(), smoab::detail::LinearCellConnectivity::LinearCellConnectivity(), moab::DualTool::list_entities(), moab::SpatialLocator::locate_points(), main(), mb_common_tag_test(), mb_root_set_test(), measure(), min_edge_length(), smoab::detail::MixedCellConnectivity::MixedCellConnectivity(), moab::WriteCGNS::moab_cgns_conv(), moab::Coupler::nat_param(), moab::DualTool::next_loop_vertex(), moab::MeshTopoUtil::opposite_entity(), orient_faces_outward(), moab::MergeMesh::perform_merge(), moab::DualTool::print_cell(), ray_test(), moab::MeshRefiner::refine(), moab::ElemEvaluator::set_ent_handle(), moab::ElemEvaluator::set_eval_set(), smoab::Interface::sideElements(), moab::MeshTopoUtil::split_entities_manifold(), moab::MeshTopoUtil::split_entity_nonmanifold(), moab::FBEngine::split_surface_with_direction(), moab::ExoIIUtil::static_get_element_type(), moab::ReadHDF5::store_sets_file_ids(), test_global_value_common(), test_var_length_data_common(), test_var_length_handle_tag(), time_forward_eval(), time_integrate(), time_jacobian(), time_reverse_eval(), moab::ParallelComm::unpack_remote_handles(), moab::ParallelComm::unpack_sets(), verdict_test1(), moab::WriteCCMIO::write_cells_and_faces(), moab::WriteVtk::write_elems(), moab::WriteDamsel::write_entities(), moab::WriteGmsh::write_file(), and moab::WriteDamsel::write_subrange().

virtual ErrorCode moab::Interface::unite_meshset ( EntityHandle  meshset1,
const EntityHandle  meshset2 
) [pure virtual]

Unite meshsets.

Unite meshset1 with meshset2, placing the results in meshset1.

Parameters:
meshset1Mesh set being united, also used to pass back result
meshset2Mesh set being united with meshset1

Implemented in moab::Core.

Referenced by moab::ReadABAQUS::load_file(), main(), mb_root_set_test(), and moab::WriteAns::write_file().

virtual ErrorCode moab::Interface::write_file ( const char *  file_name,
const char *  file_type = 0,
const char *  options = 0,
const EntityHandle output_sets = 0,
int  num_output_sets = 0,
const Tag tag_list = 0,
int  num_tags = 0 
) [pure virtual]

Write or export a file.

Write a MOAB-native file or export data to some other supported file format.

Parameters:
file_nameThe location of the file to write.
file_typeThe type of the file. If this value is NULL, then file type will be determined using the file name suffix.
optionsA semicolon-separated list of options. See README.IO for more information. Typical options include the file type, parallel options, and options specific to certain file formats.
output_setsA list of entity sets to write to the file. If no sets are sepcified, the default behavior is to write all data that is supported by the target file type.
num_output_setsThe length of the output_sets array.
tag_listA list of tags for which to write the tag data. The write may fail if a tag list is specified but the target file type is not capable of representing the data. If no tags are specified, the default is to write whatever data the target file format supports.
num_tagsThe length of tag_list.

Implemented in moab::Core.

Examples:
DeformMeshRemap.cpp, ExtrudePoly.cpp, GenLargeMesh.cpp, LloydRelaxation.cpp, LoadPartial.cpp, ReadWriteTest.cpp, ReduceExchangeTags.cpp, and VisTags.cpp.

Referenced by compute_tracer_case1(), compute_velocity_case1(), create_coarse_mesh(), create_fine_mesh(), create_input_file(), create_mesh(), create_shared_grid_3d(), moab::create_span_quads(), duplicate_model_test(), geometrize_test(), iMOAB_LoadMesh(), iMOAB_WriteMesh(), main(), merge_all_test(), merge_with_tag_test(), mergesimple_test(), read_mesh_parallel(), read_write_file(), moab::ParCommGraph::receive_mesh(), refine_entities(), save_and_load_on_root(), moab::FBEngine::separate(), split_quads_test(), moab::FBEngine::split_surface(), split_test(), split_test_across(), test_delete_entities(), test_eul_read_write_across_files(), test_eul_read_write_append(), test_eul_read_write_T(), test_eul_read_write_timestep(), test_fv_read_write_T(), test_gather_sets_common(), test_gather_sets_ranged(), test_gcrm_read_write_vars(), test_homme_read_write_T(), test_intx_in_parallel_elem_based(), test_intx_mpas(), test_mpas_read_write_vars(), test_read_adjacencies(), test_read_nodes_common(), test_read_nothing_common(), test_read_one_set_polyhedra(), test_read_parallel(), test_read_set_sets(), test_read_sides(), test_read_write(), test_set_flags(), test_tree(), test_var_length_parallel(), test_write(), test_write_free_nodes(), test_write_polygons(), test_write_polyhedra(), test_write_read_many_tags(), TestMeshRefiner(), volume_test(), write_and_read(), DeformMeshRemap::write_and_save(), write_id_test_file(), and write_vtk_mesh().

virtual ErrorCode moab::Interface::write_file ( const char *  file_name,
const char *  file_type,
const char *  options,
const Range output_sets,
const Tag tag_list = 0,
int  num_tags = 0 
) [pure virtual]

Write or export a file.

Write a MOAB-native file or export data to some other supported file format.

Parameters:
file_nameThe location of the file to write.
file_typeThe type of the file. If this value is NULL, then file type will be determined using the file name suffix.
optionsA semicolon-separated list of options. See README.IO for more information. Typical options include the file type, parallel options, and options specific to certain file formats.
output_setsA list of entity sets to write to the file. If no sets are sepcified, the default behavior is to write all data that is supported by the target file type.
tag_listA list of tags for which to write the tag data. The write may fail if a tag list is specified but the target file type is not capable of representing the data. If no tags are specified, the default is to write whatever data the target file format supports.
num_tagsThe length of tag_list.

Implemented in moab::Core.

virtual ErrorCode moab::Interface::write_mesh ( const char *  file_name,
const EntityHandle output_list = NULL,
const int  num_sets = 0 
) [pure virtual]

Writes mesh to a file.

Write mesh to file 'file_name'; if output_list is non-NULL, only material sets contained in that list will be written.

Parameters:
file_nameName of file to write.
output_list1d array of material set handles to write; if NULL, all sets are written
num_setsNumber of sets in output_list array

Example:

        EntityHandle output_list[] = {meshset1, meshset2, meshset3}; 
        write_mesh( "output_file.gen", output_list, 3 ); 

Implemented in moab::Core.

Referenced by moab::ParallelComm::check_all_shared_handles(), create_fine_mesh(), create_shell_test(), do_ray_fire_test(), moab::Intx2MeshInPlane::findNodes(), moab::Intx2MeshOnSphere::findNodes(), moab::IntxRllCssphere::findNodes(), intersection_at_level(), main(), mb_write_mesh_test(), overlap_write_geometry(), read_write(), save_tree(), test_subset(), write_and_read(), write_file(), and write_geometry().

List of all members.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines