![]() |
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 (PropertyVector< T > const &property) |
static GeoLib::AABB | getBoundingBox (const MeshLib::Mesh &mesh) |
Returns the bounding box of the mesh. More... | |
static std::map< MeshElemType, unsigned > | getNumberOfElementTypes (const MeshLib::Mesh &mesh) |
static void | writeAllNumbersOfElementTypes (const MeshLib::Mesh &mesh) |
writes all numbers of element types More... | |
static void | writePropertyVectorInformation (const MeshLib::Mesh &mesh) |
writes out property vector information More... | |
static void | writeMeshValidationResults (MeshLib::Mesh &mesh) |
|
static |
Returns the bounding box of the mesh.
Definition at line 39 of file MeshInformation.cpp.
References MeshLib::Mesh::getNodes().
Referenced by main(), and ElementTreeModel::setMesh().
|
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 45 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(), MeshLib::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 132 of file MeshInformation.cpp.
References MeshLib::MeshValidation::detectHoles(), and INFO().
Referenced by main().
|
static |
writes out property vector information
Definition at line 73 of file MeshInformation.cpp.
References MeshLib::Mesh::getProperties(), INFO(), MaterialPropertyLib::name, and anonymous_namespace{MeshInformation.cpp}::printBounds().
Referenced by main().