Example demonstrating how to fix polygons with duplicated vertices. More...
#include <iostream>#include <cstdlib>#include <cstdio>#include "moab/Core.hpp"#include "moab/Interface.hpp"#include "moab/Range.hpp"#include "moab/ProgOptions.hpp"
Include dependency graph for FixPolys.cpp:Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
Example demonstrating how to fix polygons with duplicated vertices.
This example shows how to:
The program is useful for cleaning up meshes that have been created with padded vertices to reduce data sequences, but now need to be optimized by removing redundant vertex references.
This test shows how to fix polygons that have duplicated vertices
We sometimes use padded vertices option, to reduce the number of data sequences We identify first the polygons that have padded vertices then we set the new ones with reduced number of vertices, but with the same global id tag
| argc | Number of command line arguments |
| argv | Command line arguments array |
Definition in file FixPolys.cpp.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 47 of file FixPolys.cpp.
References ProgOptions::addOpt(), 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::Core::globalId_tag(), moab::Range::insert(), moab::Core::load_file(), mb, MB_CHK_SET_ERR, MBPOLYGON, ProgOptions::parseCommandLine(), moab::Range::size(), moab::Core::tag_get_data(), moab::Core::tag_set_data(), test_file_name, and moab::Core::write_file().