Go to the documentation of this file.
3 #ifndef DUNE_GEOMETRY_TYPE_FROM_VERTEX_COUNT_HH
4 #define DUNE_GEOMETRY_TYPE_FROM_VERTEX_COUNT_HH
30 DUNE_THROW(NotImplemented,
"2d elements with " << vertices <<
" corners are not supported!");
43 DUNE_THROW(NotImplemented,
"3d elements with " << vertices <<
" corners are not supported!");
46 DUNE_THROW(NotImplemented,
"geometryTypeFromVertexCount works only up to dim=3");
52 #endif // DUNE_GEOMETRY_TYPE_FROM_VERTEX_COUNT_HH
constexpr GeometryType pyramid
GeometryType representing a 3D pyramid.
Definition: type.hh:827
constexpr GeometryType prism
GeometryType representing a 3D prism.
Definition: type.hh:833
A unique label for each type of element that can occur in a grid.
constexpr GeometryType vertex
GeometryType representing a vertex.
Definition: type.hh:797
constexpr GeometryType triangle
GeometryType representing a triangle.
Definition: type.hh:809
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:278
constexpr GeometryType line
GeometryType representing a line.
Definition: type.hh:803
constexpr GeometryType quadrilateral
GeometryType representing a quadrilateral (a square).
Definition: type.hh:815
Definition: affinegeometry.hh:18
constexpr GeometryType tetrahedron
GeometryType representing a tetrahedron.
Definition: type.hh:821
constexpr GeometryType hexahedron
GeometryType representing a hexahedron.
Definition: type.hh:839
GeometryType geometryTypeFromVertexCount(unsigned int dim, unsigned int vertices)
Utitlity function to construct the correct geometry type given the dimension and the number of vertic...
Definition: typefromvertexcount.hh:15