OGS
MeshEnums.h
Go to the documentation of this file.
1
15#pragma once
16
17#include <string>
18#include <vector>
19
20namespace MeshLib {
21
26enum class MeshElemType
27{
28 INVALID = 0,
29 POINT = 1,
30 LINE = 3,
31 QUAD = 9,
32 HEXAHEDRON = 12,
33 TRIANGLE = 5,
34 TETRAHEDRON = 10,
35 PRISM = 16,
36 PYRAMID = 14
37};
38
42enum class CellType
43{
44 INVALID = 0,
45 POINT1 = 1,
46 LINE2 = 2,
47 LINE3 = 3,
48 TRI3 = 4,
49 TRI6 = 5,
50 QUAD4 = 6,
51 QUAD8 = 7,
52 QUAD9 = 8,
53 TET4 = 9,
54 TET10 = 10,
55 HEX8 = 11,
56 HEX20 = 12,
57 HEX27 = 13,
58 PRISM6 = 14,
59 PRISM15 = 15,
60 PRISM18 = 16,
61 PYRAMID5 = 17,
62 PYRAMID13 = 18,
64};
65
78
83{
87 NONE
88};
89
91std::string MeshElemType2String(const MeshElemType t);
92
94std::string MeshElemType2StringShort(const MeshElemType t);
95
97MeshElemType String2MeshElemType(const std::string &s);
98
100std::vector<MeshElemType> getMeshElemTypes();
101
103std::vector<std::string> getMeshElemTypeStringsShort();
104
106std::string CellType2String(const CellType t);
107
108std::string MeshQualityType2String(const MeshQualityType t);
110
111} // namespace MeshLib
MeshElemType String2MeshElemType(const std::string &s)
Given a string of the shortened name of the element type, this returns the corresponding MeshElemType...
Definition MeshEnums.cpp:95
CellType
Types of mesh elements supported by OpenGeoSys.
Definition MeshEnums.h:43
MeshLib::MeshQualityType String2MeshQualityType(std::string const &s)
std::string MeshElemType2String(const MeshElemType t)
Given a MeshElemType this returns the appropriate string.
Definition MeshEnums.cpp:21
MeshQualityType
Describes a mesh quality metric.
Definition MeshEnums.h:70
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.
Definition MeshEnums.cpp:58
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)
UseIntensityAs
Selection of possible interpretations for intensities.
Definition MeshEnums.h:83
MeshElemType
Types of mesh elements supported by OpenGeoSys. Values are from VTKCellType enum.
Definition MeshEnums.h:27