OGS
MeshEnums.h
Go to the documentation of this file.
1 
15 #pragma once
16 
17 #include <string>
18 #include <vector>
19 
20 namespace MeshLib {
21 
26 enum 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 
42 enum 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 
69 enum class MeshQualityType
70 {
71  INVALID = 0,
74  EDGERATIO,
77 };
78 
82 enum class UseIntensityAs
83 {
84  ELEVATION,
85  MATERIALS,
86  DATAVECTOR,
87  NONE
88 };
89 
91 std::string MeshElemType2String(const MeshElemType t);
92 
94 std::string MeshElemType2StringShort(const MeshElemType t);
95 
97 MeshElemType String2MeshElemType(const std::string &s);
98 
100 std::vector<MeshElemType> getMeshElemTypes();
101 
103 std::vector<std::string> getMeshElemTypeStringsShort();
104 
106 std::string CellType2String(const CellType t);
107 
108 std::string MeshQualityType2String(const MeshQualityType t);
110 
111 } // namespace MeshLib
static const double s
static const double t
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)
Definition: MeshEnums.cpp:211
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.
Definition: MeshEnums.cpp:132
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.
Definition: MeshEnums.cpp:146
std::string CellType2String(const CellType t)
Given a MeshElemType this returns the appropriate string.
Definition: MeshEnums.cpp:157
std::string MeshQualityType2String(const MeshQualityType t)
Definition: MeshEnums.cpp:186
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