22 return GeometryTypes::vertex;
24 return GeometryTypes::line;
28 return GeometryTypes::triangle;
30 return GeometryTypes::quadrilateral;
32 DUNE_THROW(NotImplemented,
"2d elements with " << vertices <<
" corners are not supported!");
37 return GeometryTypes::tetrahedron;
39 return GeometryTypes::pyramid;
41 return GeometryTypes::prism;
43 return GeometryTypes::hexahedron;
45 DUNE_THROW(NotImplemented,
"3d elements with " << vertices <<
" corners are not supported!");
48 DUNE_THROW(NotImplemented,
"geometryTypeFromVertexCount works only up to dim=3");
GeometryType geometryTypeFromVertexCount(unsigned int dim, unsigned int vertices)
Utility function to construct the correct geometry type given the dimension and the number of vertice...
Definition typefromvertexcount.hh:17