8#ifndef vtkUpdateCellsV8toV9_h
9#define vtkUpdateCellsV8toV9_h
19VTK_ABI_NAMESPACE_BEGIN
31 newpts->DeepCopy(oldpts);
38 double degs_double[3];
40 for (
int ii = 0; ii < 3; ii++)
41 degs[ii] =
static_cast<int>(degs_double[ii]);
46 static_cast<int>(round(std::cbrt(
static_cast<int>(oldpts->GetNumberOfIds())))) - 1;
47 degs[0] = degs[1] = degs[2] = order;
49 for (
int j = 0; j < oldpts->GetNumberOfIds(); j++)
54 newpts->SetId(j, oldpts->GetId(newid));
65 for (
vtkIdType i = 0; i < nCellTypes; ++i)
67 unsigned char type = distinctCellTypes->
GetValue(i);
ValueType GetValue(vtkIdType valueIdx) const
Get the value at valueIdx.
vtkIdType GetNumberOfValues() const
Get the total number of values in the array.
void GetCellAtId(vtkIdType cellId, vtkIdType &cellSize, vtkIdType const *&cellPoints, vtkIdList *ptIds) override
Return the point ids for the cell at cellId.
void ReplaceCellAtId(vtkIdType cellId, vtkIdList *list)
Replaces the point ids for the specified cell with the supplied list.
abstract superclass for arrays of numeric data
virtual double * GetTuple(vtkIdType tupleIdx)=0
Get the data tuple at tupleIdx.
int SetActiveAttribute(const char *name, int attributeType)
Make the array with the given name the active attribute.
vtkDataArray * GetHigherOrderDegrees()
Set/Get the rational degrees data.
vtkCellData * GetCellData()
Return a pointer to this dataset's cell data.
static vtkIdType NodeNumberingMappingFromVTK8To9(const int order[3], vtkIdType node_id_vtk8)
Allocate and hold a VTK object.
dynamic, self-adjusting array of unsigned char
dataset represents arbitrary combinations of all possible cell types
vtkCellArray * GetCells()
Return the unstructured grid connectivity array.
vtkIdType GetNumberOfCells() override
Standard vtkDataSet methods; see vtkDataSet.h for documentation.
int GetCellType(vtkIdType cellId) override
Get the type of the cell with the given cellId.
Update cells from v8 node layout to v9 node layout.
@ VTK_LAGRANGE_HEXAHEDRON
@ VTK_HIGHER_ORDER_HEXAHEDRON
bool vtkNeedsNewFileVersionV8toV9(vtkUnsignedCharArray *distinctCellTypes)