OGS
VtkOGSEnum.h File Reference

Detailed Description

Definition in file VtkOGSEnum.h.

#include "MeshEnums.h"
Include dependency graph for VtkOGSEnum.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int OGSToVtkCellType (MeshLib::CellType ogs)
 

Function Documentation

◆ OGSToVtkCellType()

int OGSToVtkCellType ( MeshLib::CellType ogs)

Definition at line 18 of file VtkOGSEnum.cpp.

19{
20 switch (ogs)
21 {
23 return VTK_VERTEX;
25 return VTK_LINE;
27 return VTK_QUADRATIC_EDGE;
29 return VTK_TRIANGLE;
31 return VTK_QUADRATIC_TRIANGLE;
33 return VTK_QUAD;
35 return VTK_QUADRATIC_QUAD;
37 return VTK_BIQUADRATIC_QUAD;
39 return VTK_HEXAHEDRON;
41 return VTK_QUADRATIC_HEXAHEDRON;
43 return VTK_TRIQUADRATIC_HEXAHEDRON;
45 return VTK_TETRA;
47 return VTK_QUADRATIC_TETRA;
49 return VTK_WEDGE;
51 return VTK_QUADRATIC_WEDGE;
53 return VTK_BIQUADRATIC_QUADRATIC_WEDGE;
55 return VTK_PYRAMID;
57 return VTK_QUADRATIC_PYRAMID;
59 return -1;
60 default:
62 "Unknown cell type in conversion from OGS to VTK. Given cell "
63 "type value is {}.",
65 }
66}
#define OGS_FATAL(...)
Definition Error.h:26
constexpr auto to_underlying(E e) noexcept
Converts an enumeration to its underlying type.
Definition cpp23.h:29

References MeshLib::HEX20, MeshLib::HEX27, MeshLib::HEX8, MeshLib::INVALID, MeshLib::LINE2, MeshLib::LINE3, OGS_FATAL, MeshLib::POINT1, MeshLib::PRISM15, MeshLib::PRISM18, MeshLib::PRISM6, MeshLib::PYRAMID13, MeshLib::PYRAMID5, MeshLib::QUAD4, MeshLib::QUAD8, MeshLib::QUAD9, MeshLib::TET10, MeshLib::TET4, BaseLib::to_underlying(), MeshLib::TRI3, and MeshLib::TRI6.

Referenced by OGSMesh::getCells(), and MeshLib::VtkMappedMeshSource::RequestData().