MeshKit
1.0
|
A simple class for merging meshes. More...
#include <meshkit/MergeMesh.hpp>
Public Member Functions | |
MergeMesh (MKCore *mkcore, const MEntVector &me_vec) | |
virtual | ~MergeMesh () |
virtual const moab::EntityType * | mesh_types_arr () const |
Return the mesh entity types operated on by this scheme. | |
virtual bool | add_modelent (ModelEnt *model_ent) |
Re-implemented here so we can check topological dimension of model_ent. | |
virtual void | setup_this () |
Setup is a no-op, but must be provided since it's pure virtual. | |
virtual void | execute_this () |
The only setup/execute function we need, since meshing vertices is trivial. | |
iMesh * | impl () const |
void | merge_entities (iBase_EntityHandle *elems, int elems_size, const double merge_tol, const int do_merge=true, const int update_sets=false, iBase_TagHandle merge_tag=0) |
void | perform_merge (iBase_TagHandle merged_to) |
void | set_merge_params (double mergeTol=1e-4, int update_sets=0, int do_merge=1, iBase_TagHandle mergeTag=NULL) |
Static Public Member Functions | |
static const char * | name () |
Get class name. | |
static bool | can_mesh (iBase_EntityType dim) |
Function returning whether this scheme can mesh entities of t the specified dimension. | |
static bool | can_mesh (ModelEnt *me) |
Function returning whether this scheme can mesh the specified entity. | |
static const moab::EntityType * | output_types () |
Get list of mesh entity types that can be generated. | |
Private Attributes | |
iMesh * | imeshImpl |
double | mergeTol |
double | mergeTolSq |
iBase_TagHandle | mergeTag |
int | updateSets |
int | doMerge |
A simple class for merging meshes.
INPUT: ModelEnts representing meshes MESH TYPE(S): ALL TYPES OUTPUT: Copied mesh along with the existing mesh DEPENDENCIES: (none) CONSTRAINTS: (none)
This class performs the trivial task of merging meshes. There can be multiple instances of this class, and therefore it is pointed to and managed by ....
Each instance of this class stores all the ModelEnt's representing the mesh data, and after execution after meshing new entities are created and tag propagation happens.
Definition at line 47 of file MergeMesh.hpp.
MergeMesh | ( | MKCore * | mkcore, |
const MEntVector & | me_vec | ||
) |
Definition at line 31 of file MergeMesh.cpp.
~MergeMesh | ( | ) | [virtual] |
Definition at line 41 of file MergeMesh.cpp.
bool add_modelent | ( | ModelEnt * | model_ent | ) | [virtual] |
Re-implemented here so we can check topological dimension of model_ent.
model_ent | ModelEnt being added |
Reimplemented from MeshOp.
Definition at line 48 of file MergeMesh.cpp.
bool can_mesh | ( | iBase_EntityType | dim | ) | [inline, static] |
Function returning whether this scheme can mesh entities of t the specified dimension.
dim | entity dimension |
Definition at line 160 of file MergeMesh.hpp.
Function returning whether this scheme can mesh the specified entity.
Used by MeshOpFactory to find scheme for an entity.
me | ModelEnt being queried |
Definition at line 165 of file MergeMesh.hpp.
void execute_this | ( | ) | [virtual] |
The only setup/execute function we need, since meshing vertices is trivial.
Implements GraphNode.
Definition at line 68 of file MergeMesh.cpp.
Definition at line 104 of file MergeMesh.hpp.
void merge_entities | ( | iBase_EntityHandle * | elems, |
int | elems_size, | ||
const double | merge_tol, | ||
const int | do_merge = true , |
||
const int | update_sets = false , |
||
iBase_TagHandle | merge_tag = 0 |
||
) |
Definition at line 92 of file MergeMesh.cpp.
const moab::EntityType * mesh_types_arr | ( | ) | const [inline, virtual] |
Return the mesh entity types operated on by this scheme.
moab::MBMAXTYPE
Implements MeshOp.
Definition at line 170 of file MergeMesh.hpp.
const char * name | ( | ) | [inline, static] |
Get class name.
Definition at line 155 of file MergeMesh.hpp.
const moab::EntityType * output_types | ( | ) | [static] |
Get list of mesh entity types that can be generated.
moab::MBMAXTYPE
Definition at line 28 of file MergeMesh.cpp.
void perform_merge | ( | iBase_TagHandle | merged_to | ) |
Definition at line 114 of file MergeMesh.cpp.
void set_merge_params | ( | double | mergeTol = 1e-4 , |
int | update_sets = 0 , |
||
int | do_merge = 1 , |
||
iBase_TagHandle | mergeTag = NULL |
||
) |
Definition at line 53 of file MergeMesh.cpp.
void setup_this | ( | ) | [virtual] |
Setup is a no-op, but must be provided since it's pure virtual.
Implements GraphNode.
Definition at line 62 of file MergeMesh.cpp.
int doMerge [private] |
Definition at line 128 of file MergeMesh.hpp.
Definition at line 124 of file MergeMesh.hpp.
iBase_TagHandle mergeTag [private] |
Definition at line 126 of file MergeMesh.hpp.
double mergeTol [private] |
Definition at line 125 of file MergeMesh.hpp.
double mergeTolSq [private] |
Definition at line 125 of file MergeMesh.hpp.
int updateSets [private] |
Definition at line 127 of file MergeMesh.hpp.