Template Numerical Library: TNL::Meshes::VTK::GridEntityShape< GridEntity > Struct Template Reference

Template Numerical Library version\ main:c7077e4fd

Loading...
Searching...
No Matches
Static Public Attributes | List of all members
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;
}()
TNL::Meshes::GridEntity::getEntityDimension
static constexpr int getEntityDimension()
Getter of the dimensions of the grid entity.

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

- src/TNL/Meshes/VTKTraits.h