OGS
|
A set of tools for extracting information from a mesh.
Definition at line 33 of file MeshInformation.h.
#include <MeshInformation.h>
Static Public Member Functions | |
template<typename T > | |
static std::optional< std::pair< T, T > > const | getValueBounds (MeshLib::PropertyVector< T > const &property) |
static GeoLib::AABB | getBoundingBox (const MeshLib::Mesh &mesh) |
Returns the bounding box of the mesh. | |
static std::map< MeshLib::MeshElemType, unsigned > | getNumberOfElementTypes (const MeshLib::Mesh &mesh) |
static void | writeAllNumbersOfElementTypes (const MeshLib::Mesh &mesh) |
writes all numbers of element types | |
static void | writePropertyVectorInformation (const MeshLib::Mesh &mesh) |
writes out property vector information | |
static void | writeMeshValidationResults (MeshLib::Mesh &mesh) |
static std::vector< int > | getMaterialIDs (const MeshLib::Mesh &mesh) |
writes out a list of all material IDs that occur in the mesh. | |
|
static |
Returns the bounding box of the mesh.
Definition at line 39 of file MeshInformation.cpp.
References MeshLib::Mesh::getNodes().
Referenced by main(), outputAABB(), and ElementTreeModel::setMesh().
|
static |
writes out a list of all material IDs that occur in the mesh.
Definition at line 162 of file MeshInformation.cpp.
References INFO(), and MeshLib::materialIDs().
Referenced by main().
|
static |
Returns an array with the number of elements of each type in the given mesh. On completion, n_element_types array contains the number of elements of each of the seven supported types. The index to element type conversion is this: 0: #lines 1: #triangles 2: #quads 3: #tetrahedra 4: #hexahedra 5: #pyramids 6: #prisms
Definition at line 46 of file MeshInformation.cpp.
References MeshLib::Mesh::getElements().
Referenced by LayeredMeshGenerator::createLayers(), ElementTreeModel::setMesh(), FileIO::TetGenInterface::write2dElements(), and writeAllNumbersOfElementTypes().
|
inlinestatic |
Returns the smallest and largest value of a scalar array with the given name.
Definition at line 39 of file MeshInformation.h.
References MeshLib::PropertyVectorBase::getPropertyName(), and INFO().
Referenced by ProcessLib::LIE::HydroMechanics::HydroMechanicsProcess< GlobalDim >::HydroMechanicsProcess(), MeshToolsLib::convertMeshToGeo(), anonymous_namespace{MeshInformation.cpp}::printBounds(), and anonymous_namespace{ElementTreeModel.cpp}::propertyBounds().
|
static |
writes all numbers of element types
Definition at line 58 of file MeshInformation.cpp.
References getNumberOfElementTypes(), INFO(), and MeshLib::MeshElemType2String().
Referenced by main().
|
static |
writes out mesh validation results Remark: MeshValidation can modify the original mesh
Definition at line 144 of file MeshInformation.cpp.
References MeshToolsLib::MeshValidation::allNodesUsed(), MeshToolsLib::MeshValidation::detectHoles(), MeshToolsLib::MeshValidation::evaluateElementGeometry(), MeshToolsLib::MeshValidation::existCollapsibleNodes(), and INFO().
Referenced by main().
|
static |
writes out property vector information
Definition at line 73 of file MeshInformation.cpp.
References MeshLib::Mesh::getProperties(), and INFO().
Referenced by main().