OGS
MeshPropertyDataType.cpp
Go to the documentation of this file.
1
11
#include "
MeshPropertyDataType.h
"
12
13
// See https://www.xdmf.org/index.php/XDMF_Model_and_Format#Topology (Arbitrary)
14
std::string
ParentDataType2String
(
ParentDataType
p)
15
{
16
// not used in OGS ParentDataType::POLYGON, ParentDataType::POLYHEDRON,
17
// ParentDataType::HEXAHEDRON_24
18
if
(p ==
ParentDataType::MIXED
)
19
{
20
return
"Mixed"
;
21
}
22
23
if
(p ==
ParentDataType::POLYVERTEX
)
24
{
25
return
"Polyvertex"
;
26
}
27
if
(p ==
ParentDataType::POLYLINE
)
28
{
29
return
"Polyline"
;
30
}
31
if
(p ==
ParentDataType::TRIANGLE
)
32
{
33
return
"Triangle"
;
34
}
35
if
(p ==
ParentDataType::QUADRILATERAL
)
36
{
37
return
"Quadrilateral"
;
38
}
39
if
(p ==
ParentDataType::TETRAHEDRON
)
40
{
41
return
"Tetrahedron"
;
42
}
43
if
(p ==
ParentDataType::PYRAMID
)
44
{
45
return
"Pyramid"
;
46
}
47
if
(p ==
ParentDataType::WEDGE
)
48
{
49
return
"Wedge"
;
50
}
51
if
(p ==
ParentDataType::HEXAHEDRON
)
52
{
53
return
"Hexahedron"
;
54
}
55
if
(p ==
ParentDataType::EDGE_3
)
56
{
57
return
"Edge_3"
;
58
}
59
if
(p ==
ParentDataType::QUADRILATERAL_9
)
60
{
61
return
"Quadrilateral_9"
;
62
}
63
if
(p ==
ParentDataType::TRIANGLE_6
)
64
{
65
return
"Triangle_6"
;
66
}
67
if
(p ==
ParentDataType::QUADRILATERAL_8
)
68
{
69
return
"Quadrilateral_8"
;
70
}
71
if
(p ==
ParentDataType::TETRAHEDRON_10
)
72
{
73
return
"Tetrahedron_10"
;
74
}
75
if
(p ==
ParentDataType::PYRAMID_13
)
76
{
77
return
"Pyramid_13"
;
78
}
79
if
(p ==
ParentDataType::WEDGE_15
)
80
{
81
return
"Wedge_15"
;
82
}
83
if
(p ==
ParentDataType::WEDGE_18
)
84
{
85
return
"Wedge_18"
;
86
}
87
if
(p ==
ParentDataType::HEXAHEDRON_20
)
88
{
89
return
"Hexahedron_20"
;
90
}
91
if
(p ==
ParentDataType::HEXAHEDRON_27
)
92
{
93
return
"Hexahedron_27"
;
94
}
95
return
"Mixed"
;
96
}
ParentDataType2String
std::string ParentDataType2String(ParentDataType p)
Definition
MeshPropertyDataType.cpp:14
MeshPropertyDataType.h
Enum for all propertyVector data types and XDMF ParentDataTypes.
ParentDataType
ParentDataType
Definition
MeshPropertyDataType.h:38
ParentDataType::TETRAHEDRON_10
@ TETRAHEDRON_10
ParentDataType::PYRAMID_13
@ PYRAMID_13
ParentDataType::WEDGE_15
@ WEDGE_15
ParentDataType::TRIANGLE_6
@ TRIANGLE_6
ParentDataType::QUADRILATERAL_9
@ QUADRILATERAL_9
ParentDataType::WEDGE
@ WEDGE
ParentDataType::MIXED
@ MIXED
ParentDataType::HEXAHEDRON_27
@ HEXAHEDRON_27
ParentDataType::EDGE_3
@ EDGE_3
ParentDataType::HEXAHEDRON
@ HEXAHEDRON
ParentDataType::HEXAHEDRON_20
@ HEXAHEDRON_20
ParentDataType::TETRAHEDRON
@ TETRAHEDRON
ParentDataType::TRIANGLE
@ TRIANGLE
ParentDataType::QUADRILATERAL
@ QUADRILATERAL
ParentDataType::PYRAMID
@ PYRAMID
ParentDataType::POLYVERTEX
@ POLYVERTEX
ParentDataType::POLYLINE
@ POLYLINE
ParentDataType::WEDGE_18
@ WEDGE_18
ParentDataType::QUADRILATERAL_8
@ QUADRILATERAL_8
MeshLib
IO
XDMF
MeshPropertyDataType.cpp
Generated by
1.12.0