8 #ifndef vtkUpdateCellsV8toV9_h
9 #define vtkUpdateCellsV8toV9_h
21 VTK_ABI_NAMESPACE_BEGIN
37 "HigherOrderDegrees", vtkDataSetAttributes::AttributeTypes::HIGHERORDERDEGREES) != -1)
40 double degs_double[3];
42 for (
int ii = 0; ii < 3; ii++)
43 degs[ii] = static_cast<int>(degs_double[ii]);
48 static_cast<int>(round(std::cbrt(static_cast<int>(oldpts->
GetNumberOfIds())))) - 1;
49 degs[0] = degs[1] = degs[2] =
order;
67 for (
vtkIdType i = 0; i < nCellTypes; ++i)
80 #endif // vtkUpdateCellsV8toV9_h
void SetId(vtkIdType i, vtkIdType vtkid)
Set the id at location i.
virtual double * GetTuple(vtkIdType tupleIdx)=0
Get the data tuple at tupleIdx.
vtkCellData * GetCellData()
Return a pointer to this dataset's cell data.
ValueType GetValue(vtkIdType valueIdx) const
Get the value at valueIdx.
bool vtkNeedsNewFileVersionV8toV9(vtkUnsignedCharArray *distinctCellTypes)
vtkIdType GetNumberOfValues() const
Get the total number of values in the array.
vtkIdType GetId(vtkIdType i)
Return the id at location i.
dataset represents arbitrary combinations of all possible cell types
abstract superclass for arrays of numeric data
vtkIdType GetNumberOfIds() const noexcept
Return the number of id's in the list.
vtkIdType GetNumberOfCells() override
Standard vtkDataSet methods; see vtkDataSet.h for documentation.
dynamic, self-adjusting array of unsigned char
ValueType GetTypedComponent(vtkIdType tupleIdx, int comp) const
Get component comp of the tuple at tupleIdx.
vtkUnsignedCharArray * GetCellTypesArray()
Get the array of all cell types in the grid.
void ReplaceCellAtId(vtkIdType cellId, vtkIdList *list)
Replaces the point ids for the specified cell with the supplied list.
void vtkUpdateCellsV8toV9(vtkUnstructuredGrid *output)
vtkDataArray * GetHigherOrderDegrees()
Set/Get the rational degrees data.
vtkCellArray * GetCells()
Return the unstructured grid connectivity array.
void GetCellAtId(vtkIdType cellId, vtkIdType &cellSize, vtkIdType const *&cellPoints)
Return the point ids for the cell at cellId.
int SetActiveAttribute(const char *name, int attributeType)
Make the array with the given name the active attribute.
static vtkIdType NodeNumberingMappingFromVTK8To9(const int order[3], vtkIdType node_id_vtk8)
void DeepCopy(vtkIdList *ids)
Copy an id list by explicitly copying the internal array.