17#include "vtkFiltersCellGridModule.h"
22VTK_ABI_NAMESPACE_BEGIN
53 static constexpr int Dimension = 3;
54 static const std::array<std::array<double, 3>, 4>
Parameters;
55 static const std::array<std::vector<vtkIdType>, 14>
Sides;
56 static const std::array<int, vtkDGTet::Dimension + 1>
SideOffsets;
57 static const std::array<Shape, Dimension + 1>
SideShapes;
65 void operator=(
const vtkDGTet&) =
delete;
A function defined over the physical domain of a vtkCellGrid.
Visualization data composed of cells of arbitrary type.
Base class for a discontinuous Galerkin cells of all shapes.
Shape
All possible shapes for DG cells.
@ Tetrahedron
A four-cornered volume bounded by 4 triangular shapes.
Metadata for a discontinuous Galerkin tetrahedron.
const std::vector< vtkIdType > & GetSideConnectivity(int side) const override
Return the connectivity of the given side.
static const std::array< int, vtkDGTet::Dimension+1 > SideOffsets
const std::array< double, 3 > & GetCornerParameter(int corner) const override
Return the coordinates of the reference element's corner vertex.
static const std::array< std::array< double, 3 >, 4 > Parameters
Shape GetSideShape(int side) const override
For a given side, return its cell shape.
static const std::array< std::vector< vtkIdType >, 14 > Sides
Shape GetShape() const override
Return the topological shape of this cell type.
vtkTypeInt32Array * GetSideOffsetsAndShapes() const override
Return a singleton array initialized with 2-tuples of (offset, shape) values.
vtkTypeFloat32Array * GetReferencePoints() const override
Return a singleton array initialized with the reference-cell's corner point coordinates.
int GetNumberOfSidesOfDimension(int dimension) const override
Return the number of boundaries this type of cell has of a given dimension.
vtkIdType GetNumberOfCells() override
Return the number of cells of this type in the parent cell-grid object.
int GetDimension() const override
Return the parametric dimension of this cell type (0, 1, 2, or 3).
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeInt32Array * GetSideConnectivity() const override
Return a singleton array initialized with point-ids of each side's corners.
static const std::array< Shape, Dimension+1 > SideShapes
std::pair< int, int > GetSideRangeForType(int sideType) const override
Return the range of sides of the ii-th type, where ii is in [0, this->GetNumberOfSideTypes()[.
int GetNumberOfSideTypes() const override
Return the number of different side shapes of this cell type.
int GetNumberOfCorners() const override
Return the number of corner points for this cell type.
represent and manipulate attribute data in a dataset
a simple class to control print indentation
Represent a string by its integer hash.