dune-geometry  2.8.0
Functions | Variables
Dune::GeometryTypes Namespace Reference

Predefined GeometryTypes for common geometries. More...

Functions

constexpr GeometryType simplex (unsigned int dim)
 Returns a GeometryType representing a simplex of dimension dim. More...
 
constexpr GeometryType cube (unsigned int dim)
 Returns a GeometryType representing a hypercube of dimension dim. More...
 
constexpr GeometryType none (unsigned int dim)
 Returns a GeometryType representing a singular of dimension dim. More...
 
constexpr GeometryType conicalExtension (const GeometryType &gt)
 Return GeometryType of a conical construction with gt as base
More...
 
constexpr GeometryType prismaticExtension (const GeometryType &gt)
 Return GeometryType of a prismatic construction with gt as base
More...
 

Variables

constexpr GeometryType vertex = GeometryType(0,0,false)
 GeometryType representing a vertex. More...
 
constexpr GeometryType line = GeometryType(0,1,false)
 GeometryType representing a line. More...
 
constexpr GeometryType triangle = simplex(2)
 GeometryType representing a triangle. More...
 
constexpr GeometryType quadrilateral = cube(2)
 GeometryType representing a quadrilateral (a square). More...
 
constexpr GeometryType tetrahedron = simplex(3)
 GeometryType representing a tetrahedron. More...
 
constexpr GeometryType pyramid = GeometryType(0b0011,3,false)
 GeometryType representing a 3D pyramid. More...
 
constexpr GeometryType prism = GeometryType(0b0101,3,false)
 GeometryType representing a 3D prism. More...
 
constexpr GeometryType hexahedron = cube(3)
 GeometryType representing a hexahedron. More...
 

Detailed Description

Predefined GeometryTypes for common geometries.

Function Documentation

◆ conicalExtension()

constexpr GeometryType Dune::GeometryTypes::conicalExtension ( const GeometryType gt)
inlineconstexpr

Return GeometryType of a conical construction with gt as base

◆ prismaticExtension()

constexpr GeometryType Dune::GeometryTypes::prismaticExtension ( const GeometryType gt)
inlineconstexpr

Return GeometryType of a prismatic construction with gt as base