Example demonstrating conversion of repeated-vertex cells to triangles/quads/polygons. More...
Include dependency graph for QuadTriConv.cpp:Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
Example demonstrating conversion of repeated-vertex cells to triangles/quads/polygons.
This example shows how to:
This is useful for cleaning up rll meshes or other grids with repeated vertices at the poles or other singularities.
Merge vertices in 2d cell, if they are repeated
To run: QuadTriConv input_file output_file
In this example, a mesh that has vertices repeated due to south or north pole, for example in an rll mesh, need to be converted to triangles, preserving GLOBAL_ID tag
| argc | Number of command line arguments |
| argv | Command line arguments array |
Definition in file QuadTriConv.cpp.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 41 of file QuadTriConv.cpp.
References moab::Range::begin(), moab::Core::create_element(), moab::Core::delete_entities(), moab::Range::end(), moab::Core::get_connectivity(), moab::Core::get_entities_by_dimension(), moab::index, moab::Range::insert(), moab::Core::load_file(), mb, MB_CHK_SET_ERR, MBPOLYGON, MBQUAD, MBTRI, moab::Range::size(), moab::Core::tag_get_data(), moab::Core::tag_get_handle(), moab::Core::tag_set_data(), and moab::Core::write_file().