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::pair< std::string, std::size_t > ParentDataType2String (ParentDataType p)
 

Function Documentation

◆ ParentDataType2String()

std::pair< std::string, std::size_t > 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", 1};
21 }
22
24 {
25 return {"Polyvertex", 1};
26 }
28 {
29 return {"Polyline", 2};
30 }
32 {
33 return {"Triangle", 3};
34 }
36 {
37 return {"Quadrilateral", 4};
38 }
40 {
41 return {"Tetrahedron", 4};
42 }
44 {
45 return {"Pyramid", 5};
46 }
47 if (p == ParentDataType::WEDGE)
48 {
49 return {"Wedge", 6};
50 }
52 {
53 return {"Hexahedron", 8};
54 }
56 {
57 return {"Edge_3", 3};
58 }
60 {
61 return {"Quadrilateral_9", 9};
62 }
64 {
65 return {"Triangle_6", 6};
66 }
68 {
69 return {"Quadrilateral_8", 8};
70 }
72 {
73 return {"Tetrahedron_10", 10};
74 }
76 {
77 return {"Pyramid_13", 13};
78 }
80 {
81 return {"Wedge_15", 15};
82 }
84 {
85 return {"Wedge_18", 18};
86 }
88 {
89 return {"Hexahedron_20", 20};
90 }
92 {
93 return {"Hexahedron_27", 27};
94 }
95 return {"Mixed", 1};
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::transformTopology(), and MeshLib::IO::write_xdmf().