Helper class for converting between MFEM and VTK geometry types.
More...
#include <vtk.hpp>
|
static Geometry::Type | GetMFEMGeometry (int vtk_geom) |
| Given a VTK geometry type, return the corresponding MFEM Geometry::Type. More...
|
|
static bool | IsLagrange (int vtk_geom) |
| Does the given VTK geometry type describe an arbitrary-order Lagrange element? More...
|
|
static bool | IsQuadratic (int vtk_geom) |
| Does the given VTK geometry type describe a legacy quadratic element? More...
|
|
static int | GetOrder (int vtk_geom, int npoints) |
| For the given VTK geometry type and number of points, return the order of the element. More...
|
|
Helper class for converting between MFEM and VTK geometry types.
Note: The VTK element types defined are at: https://git.io/JvZLm
Definition at line 26 of file vtk.hpp.
◆ GetMFEMGeometry()
◆ GetOrder()
int mfem::VTKGeometry::GetOrder |
( |
int |
vtk_geom, |
|
|
int |
npoints |
|
) |
| |
|
static |
For the given VTK geometry type and number of points, return the order of the element.
Definition at line 96 of file vtk.cpp.
◆ IsLagrange()
bool mfem::VTKGeometry::IsLagrange |
( |
int |
vtk_geom | ) |
|
|
static |
Does the given VTK geometry type describe an arbitrary-order Lagrange element?
Definition at line 85 of file vtk.cpp.
◆ IsQuadratic()
bool mfem::VTKGeometry::IsQuadratic |
( |
int |
vtk_geom | ) |
|
|
static |
Does the given VTK geometry type describe a legacy quadratic element?
Definition at line 90 of file vtk.cpp.
◆ BIQUADRATIC_QUADRATIC_PRISM
const int mfem::VTKGeometry::BIQUADRATIC_QUADRATIC_PRISM = 32 |
|
static |
◆ BIQUADRATIC_SQUARE
const int mfem::VTKGeometry::BIQUADRATIC_SQUARE = 28 |
|
static |
◆ CUBE
const int mfem::VTKGeometry::CUBE = 12 |
|
static |
◆ HighOrderMap
const int mfem::VTKGeometry::HighOrderMap |
|
static |
Initial value:
Map from MFEM's Geometry::Type to arbitrary-order Lagrange VTK geometries.
Definition at line 80 of file vtk.hpp.
◆ LAGRANGE_CUBE
const int mfem::VTKGeometry::LAGRANGE_CUBE = 72 |
|
static |
◆ LAGRANGE_PRISM
const int mfem::VTKGeometry::LAGRANGE_PRISM = 73 |
|
static |
◆ LAGRANGE_PYRAMID
const int mfem::VTKGeometry::LAGRANGE_PYRAMID = 74 |
|
static |
◆ LAGRANGE_SEGMENT
const int mfem::VTKGeometry::LAGRANGE_SEGMENT = 68 |
|
static |
◆ LAGRANGE_SQUARE
const int mfem::VTKGeometry::LAGRANGE_SQUARE = 70 |
|
static |
◆ LAGRANGE_TETRAHEDRON
const int mfem::VTKGeometry::LAGRANGE_TETRAHEDRON = 71 |
|
static |
◆ LAGRANGE_TRIANGLE
const int mfem::VTKGeometry::LAGRANGE_TRIANGLE = 69 |
|
static |
◆ Map
const int mfem::VTKGeometry::Map |
|
static |
◆ POINT
const int mfem::VTKGeometry::POINT = 1 |
|
static |
◆ PRISM
const int mfem::VTKGeometry::PRISM = 13 |
|
static |
◆ PrismMap
const int mfem::VTKGeometry::PrismMap = {0, 2, 1, 3, 5, 4} |
|
static |
Permutation from MFEM's prism ordering to VTK's prism ordering.
Definition at line 68 of file vtk.hpp.
◆ PYRAMID
const int mfem::VTKGeometry::PYRAMID = 14 |
|
static |
◆ QUADRATIC_PRISM
const int mfem::VTKGeometry::QUADRATIC_PRISM = 26 |
|
static |
◆ QUADRATIC_PYRAMID
const int mfem::VTKGeometry::QUADRATIC_PYRAMID = 27 |
|
static |
◆ QUADRATIC_SEGMENT
const int mfem::VTKGeometry::QUADRATIC_SEGMENT = 21 |
|
static |
◆ QUADRATIC_TETRAHEDRON
const int mfem::VTKGeometry::QUADRATIC_TETRAHEDRON = 24 |
|
static |
◆ QUADRATIC_TRIANGLE
const int mfem::VTKGeometry::QUADRATIC_TRIANGLE = 22 |
|
static |
◆ QuadraticMap
const int mfem::VTKGeometry::QuadraticMap |
|
static |
Initial value:
Map from MFEM's Geometry::Type to legacy quadratic VTK geometries/.
Definition at line 78 of file vtk.hpp.
◆ SEGMENT
const int mfem::VTKGeometry::SEGMENT = 3 |
|
static |
◆ SQUARE
const int mfem::VTKGeometry::SQUARE = 9 |
|
static |
◆ TETRAHEDRON
const int mfem::VTKGeometry::TETRAHEDRON = 10 |
|
static |
◆ TRIANGLE
const int mfem::VTKGeometry::TRIANGLE = 5 |
|
static |
◆ TRIQUADRATIC_CUBE
const int mfem::VTKGeometry::TRIQUADRATIC_CUBE = 29 |
|
static |
◆ VertexPermutation
const int * mfem::VTKGeometry::VertexPermutation |
|
static |
Initial value:
Permutation from MFEM's vertex ordering to VTK's vertex ordering.
- Note
- If the MFEM and VTK orderings are the same, the vertex permutation will be NULL.
Definition at line 73 of file vtk.hpp.
The documentation for this struct was generated from the following files: