Example demonstrating addition of point cloud data to mesh files. More...
Include dependency graph for addPCdata.cpp:Go to the source code of this file.
Functions | |
| int | main (int argc, char *argv[]) |
Example demonstrating addition of point cloud data to mesh files.
This example shows how to:
This tool is useful for adding point cloud data to mesh files for better visualization and analysis in tools like VisIt.
this tool will take an existing h5m fine atm mesh file and add data from an h5m type file with point cloud mesh will support mainly showing the data with Visit
example of usage: ./mbaddpcdata -i wholeFineATM.h5m -s wholeLND_proj01.h5m -o atm_a2l.h5m -v a2lTbot_proj
it should work also for pentagon file style data ./mbaddpcdata -i MOABsource/MeshFiles/unittest/penta3d.h5m -s wholeLND_proj01.h5m -o atm_a2l.h5m -v a2lTbot_proj -p 1
Basically, will output a new h5m file (atm_a2l.h5m), which has an extra tag, corresponding to the variable a2lTbot_proj from the file wholeLND_proj01.h5m; matching is based on the global ids between what we think is the order on the original file (wholeFineATM.h5m) and the order of surfdata_ne11np4_simyr1850_c160614.nc
file wholeFineATM.h5m is obtained from a coupled run in e3sm, with the ne 11, np 4,
| argc | Number of command line arguments |
| argv | Command line arguments array |
Definition in file addPCdata.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 50 of file addPCdata.cpp.
References ProgOptions::addOpt(), moab::Range::begin(), moab::Range::end(), ErrorCode, moab::Core::get_entities_by_dimension(), moab::Core::load_file(), mb, MB_CHK_SET_ERR, MB_TAG_CREAT, MB_TAG_DENSE, MB_TYPE_DOUBLE, MB_TYPE_INTEGER, ProgOptions::parseCommandLine(), ProgOptions::printHelp(), moab::Range::size(), moab::Core::tag_get_bytes(), moab::Core::tag_get_data(), moab::Core::tag_get_data_type(), moab::Core::tag_get_handle(), moab::Core::tag_get_length(), moab::Core::tag_set_data(), and moab::Core::write_file().