OGS
|
Computes mesh node ids of mesh nodes within a polygonal region, that resides on the surface.
Definition in file computeSurfaceNodeIDsInPolygonalRegion.cpp.
#include <tclap/CmdLine.h>
#include <algorithm>
#include <memory>
#include <string>
#include <vector>
#include "Applications/FileIO/readGeometryFromFile.h"
#include "BaseLib/Error.h"
#include "BaseLib/FileTools.h"
#include "GeoLib/GEOObjects.h"
#include "GeoLib/Polygon.h"
#include "InfoLib/GitInfo.h"
#include "MeshLib/IO/readMeshFromFile.h"
#include "MeshLib/Mesh.h"
#include "MeshLib/MeshSurfaceExtraction.h"
#include "MeshLib/Node.h"
Go to the source code of this file.
Functions | |
void | writeToFile (std::string const &id_area_fname, std::string const &csv_fname, std::vector< std::pair< std::size_t, double >> const &ids_and_areas, std::vector< MeshLib::Node * > const &mesh_nodes) |
int | main (int argc, char *argv[]) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 68 of file computeSurfaceNodeIDsInPolygonalRegion.cpp.
References ERR(), BaseLib::extractPath(), GeoLib::GEOObjects::getGeometryNames(), MathLib::Point3dWithID::getID(), MeshLib::MeshSurfaceExtraction::getMeshSurface(), GeoLib::TemplateVec< T >::getNameOfElement(), GeoLib::GEOObjects::getPointVec(), GeoLib::GEOObjects::getPolylineVec(), GeoLib::GEOObjects::getPolylineVecObj(), MeshLib::MeshSurfaceExtraction::getSurfaceAreaForNodes(), MeshLib::MeshSurfaceExtraction::getSurfaceNodes(), GeoLib::TemplateVec< T >::getVector(), INFO(), GitInfoLib::GitInfo::ogs_version, MathLib::p, FileIO::readGeometryFromFile(), MeshLib::IO::readMeshFromFile(), and writeToFile().
void writeToFile | ( | std::string const & | id_area_fname, |
std::string const & | csv_fname, | ||
std::vector< std::pair< std::size_t, double >> const & | ids_and_areas, | ||
std::vector< MeshLib::Node * > const & | mesh_nodes | ||
) |
Definition at line 31 of file computeSurfaceNodeIDsInPolygonalRegion.cpp.
References OGS_FATAL.
Referenced by GeoTabWidget::GeoTabWidget(), MeshTabWidget::MeshTabWidget(), StationTabWidget::StationTabWidget(), VtkVisPipelineView::exportSelectedPipelineItemAsVtk(), and main().