6#include <boost/algorithm/string/predicate.hpp>
86 if (boost::iequals(s,
"point"))
90 if (boost::iequals(s,
"line"))
94 if (boost::iequals(s,
"quad") || boost::iequals(s,
"Quadrilateral"))
98 if (boost::iequals(s,
"hex") || boost::iequals(s,
"Hexahedron"))
102 if (boost::iequals(s,
"tri") || boost::iequals(s,
"Triangle"))
106 if (boost::iequals(s,
"tet") || boost::iequals(s,
"Tetrahedron"))
110 if (boost::iequals(s,
"pris") || boost::iequals(s,
"Prism"))
114 if (boost::iequals(s,
"pyra") || boost::iequals(s,
"Pyramid"))
123 std::vector<MeshElemType> vec;
137 std::vector<std::string> vec;
139 std::transform(mesh_elem_types.begin(), mesh_elem_types.end(),
140 std::back_inserter(vec),
141 [](
auto const& element_type)
142 { return MeshElemType2StringShort(element_type); });
148#define RETURN_CELL_TYPE_STR(t, type) \
149 if ((t) == CellType::type) \
172#undef RETURN_CELL_TYPE_STR
179 return "ElementSize";
187 return "EquiAngleSkew";
191 return "RadiusEdgeRatio";
195 return "SizeDifference";
202 if (boost::iequals(s,
"ElementSize"))
206 if (boost::iequals(s,
"EdgeRatio"))
210 if (boost::iequals(s,
"EquiAngleSkew"))
214 if (boost::iequals(s,
"RadiusEdgeRatio"))
218 if (boost::iequals(s,
"SizeDifference"))
#define RETURN_CELL_TYPE_STR(t, type)
MeshElemType String2MeshElemType(const std::string &s)
Given a string of the shortened name of the element type, this returns the corresponding MeshElemType...
CellType
Types of mesh elements supported by OpenGeoSys.
MeshLib::MeshQualityType String2MeshQualityType(std::string const &s)
std::string MeshElemType2String(const MeshElemType t)
Given a MeshElemType this returns the appropriate string.
MeshQualityType
Describes a mesh quality metric.
std::vector< MeshElemType > getMeshElemTypes()
Returns a vector of all mesh element types.
std::string MeshElemType2StringShort(const MeshElemType t)
Given a MeshElemType this returns the appropriate string with a short name.
std::vector< std::string > getMeshElemTypeStringsShort()
Returns a vector of strings of mesh element types.
std::string CellType2String(const CellType t)
Given a MeshElemType this returns the appropriate string.
std::string MeshQualityType2String(const MeshQualityType t)
MeshElemType
Types of mesh elements supported by OpenGeoSys. Values are from VTKCellType enum.