Template Numerical Library version\ main:bdaf14e
Loading...
Searching...
No Matches
TNL::Meshes::VTK::GridEntityShape< GridEntity > Struct Template Reference

Static Public Attributes

static constexpr EntityShape shape

Member Data Documentation

◆ shape

template<typename GridEntity>
EntityShape TNL::Meshes::VTK::GridEntityShape< GridEntity >::shape
staticconstexpr
Initial value:
= []() constexpr
{
constexpr int dim = GridEntity::getEntityDimension();
static_assert( dim >= 0 && dim <= 3, "unexpected dimension of the grid entity" );
if constexpr( dim == 0 )
return EntityShape::Vertex;
if constexpr( dim == 1 )
return EntityShape::Line;
if constexpr( dim == 2 )
return EntityShape::Pixel;
if constexpr( dim == 3 )
return EntityShape::Voxel;
}()
static constexpr int getEntityDimension()
Getter of the dimensions of the grid entity.

The documentation for this struct was generated from the following file: