OGS
MeshPropertyDataType.cpp File Reference

Detailed Description

Enum ParentDataType to string translations.

Definition in file MeshPropertyDataType.cpp.

Include dependency graph for MeshPropertyDataType.cpp:

Go to the source code of this file.

Functions

std::string ParentDataType2String (ParentDataType p)
 

Function Documentation

◆ ParentDataType2String()

std::string ParentDataType2String ( ParentDataType p)

Definition at line 14 of file MeshPropertyDataType.cpp.

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
24 {
25 return "Polyvertex";
26 }
28 {
29 return "Polyline";
30 }
32 {
33 return "Triangle";
34 }
36 {
37 return "Quadrilateral";
38 }
40 {
41 return "Tetrahedron";
42 }
44 {
45 return "Pyramid";
46 }
47 if (p == ParentDataType::WEDGE)
48 {
49 return "Wedge";
50 }
52 {
53 return "Hexahedron";
54 }
56 {
57 return "Edge_3";
58 }
60 {
61 return "Quadrilateral_9";
62 }
64 {
65 return "Triangle_6";
66 }
68 {
69 return "Quadrilateral_8";
70 }
72 {
73 return "Tetrahedron_10";
74 }
76 {
77 return "Pyramid_13";
78 }
80 {
81 return "Wedge_15";
82 }
84 {
85 return "Wedge_18";
86 }
88 {
89 return "Hexahedron_20";
90 }
92 {
93 return "Hexahedron_27";
94 }
95 return "Mixed";
96}

References EDGE_3, HEXAHEDRON, HEXAHEDRON_20, HEXAHEDRON_27, MIXED, POLYLINE, POLYVERTEX, PYRAMID, PYRAMID_13, QUADRILATERAL, QUADRILATERAL_8, QUADRILATERAL_9, TETRAHEDRON, TETRAHEDRON_10, TRIANGLE, TRIANGLE_6, WEDGE, WEDGE_15, and WEDGE_18.

Referenced by MeshLib::IO::write_xdmf().