Example demonstrating extraction of mesh elements based on distance from a point. More...
#include <iostream>#include <cstdlib>#include <cstdio>#include "moab/Core.hpp"#include "moab/Interface.hpp"#include "moab/Range.hpp"#include "moab/ProgOptions.hpp"#include "moab/CartVect.hpp"#include "moab/IntxMesh/IntxUtils.hpp"
Include dependency graph for ExtractClose.cpp:Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
Example demonstrating extraction of mesh elements based on distance from a point.
This example shows how to:
This is particularly useful for debugging large mesh files where you need to examine elements near a specific location without loading the entire mesh into memory.
This test shows how to extract mesh from a model, based on distance.
MOAB's It is needed to extract from large mesh files cells close to some point, where we suspect errors It would be useful for 9Gb input file that we cannot visualize, but we have overlapped elements.
| argc | Number of command line arguments |
| argv | Command line arguments array |
Definition in file ExtractClose.cpp.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 54 of file ExtractClose.cpp.
References moab::Core::add_entities(), ProgOptions::addOpt(), moab::Range::begin(), center(), moab::Core::create_meshset(), moab::Range::end(), moab::Core::get_coords(), moab::Core::get_entities_by_dimension(), moab::Range::insert(), moab::IntxUtils::SphereCoords::lat, length(), moab::Core::load_file(), moab::IntxUtils::SphereCoords::lon, mb, MB_CHK_ERR, MB_CHK_SET_ERR, MESHSET_SET, ProgOptions::parseCommandLine(), moab::IntxUtils::SphereCoords::R, moab::Range::size(), moab::IntxUtils::spherical_to_cart(), test_file_name, and moab::Core::write_file().