26 if (!bounds.has_value())
28 INFO(
"\t{:s}: Could not get value bounds for property vector.",
33 property.
size(), bounds->first, bounds->second);
41 const std::vector<MeshLib::Node*>& nodes(mesh.
getNodes());
48 std::map<MeshElemType, unsigned> n_element_types;
49 const std::vector<MeshLib::Element*>& elements(mesh.
getElements());
50 for (
auto element : elements)
55 return n_element_types;
60 auto const& nr_ele_types =
63 INFO(
"Number of elements in the mesh:");
64 for (
auto entry : nr_ele_types)
76 INFO(
"There are {:d} properties in the mesh:", properties.size());
78 for (
auto [
name, property] : properties)
125 "\t{:s}: Could not get value bounds for property vector of "
127 name,
typeid(*p).name());
139 INFO(
"{:d} hole(s) detected within the mesh", n_holes);
143 INFO(
"No holes found within the mesh.");
Definition of the Element class.
void INFO(char const *fmt, Args const &... args)
Definition of the MeshValidation class.
Class AABB is an axis aligned bounding box around a given set of geometric points of (template) type ...
std::vector< Node * > const & getNodes() const
Get the nodes-vector for the mesh.
std::vector< Element * > const & getElements() const
Get the element-vector for the mesh.
Properties & getProperties()
std::string const & getPropertyName() const
std::string MeshElemType2String(const MeshElemType t)
Given a MeshElemType this returns the appropriate string.
MeshElemType
Types of mesh elements supported by OpenGeoSys. Values are from VTKCellType enum.
A collection of methods for testing mesh quality and correctness.
static unsigned detectHoles(MeshLib::Mesh const &mesh)