 |
VTK
9.0.1
|
Go to the documentation of this file.
20 #ifndef vtkUpdateCellsV8toV9_h
21 #define vtkUpdateCellsV8toV9_h
48 "HigherOrderDegrees", vtkDataSetAttributes::AttributeTypes::HIGHERORDERDEGREES) != -1)
51 double degs_double[3];
53 for (
int ii = 0; ii < 3; ii++)
54 degs[ii] =
static_cast<int>(degs_double[ii]);
59 static_cast<int>(round(std::cbrt(
static_cast<int>(oldpts->
GetNumberOfIds())))) - 1;
60 degs[0] = degs[1] = degs[2] =
order;
78 for (
vtkIdType i = 0; i < nCellTypes; ++i)
90 #endif // vtkUpdateCellsV8toV9_h
int SetActiveAttribute(const char *name, int attributeType)
Make the array with the given name the active attribute.
object provides direct access to cells in vtkCellArray and type information
static vtkIdType NodeNumberingMappingFromVTK8To9(const int order[3], const vtkIdType node_id_vtk8)
void DeepCopy(vtkIdList *ids)
Copy an id list by explicitly copying the internal array.
void ReplaceCellAtId(vtkIdType cellId, vtkIdList *list)
Replaces the point ids for the specified cell with the supplied list.
vtkUnsignedCharArray * GetCellTypesArray()
Get the array of all cell types in the grid.
bool vtkNeedsNewFileVersionV8toV9(vtkCellTypes *cellTypes)
@ VTK_LAGRANGE_HEXAHEDRON
abstract superclass for arrays of numeric data
void vtkUpdateCellsV8toV9(vtkUnstructuredGrid *output)
virtual double * GetTuple(vtkIdType tupleIdx)=0
Get the data tuple at tupleIdx.
vtkIdType GetNumberOfCells() override
Determine the number of cells composing the dataset.
vtkIdType GetNumberOfTypes()
Return the number of types in the list.
void GetCellAtId(vtkIdType cellId, vtkIdType &cellSize, vtkIdType const *&cellPoints)
Return the point ids for the cell at cellId.
void SetId(const vtkIdType i, const vtkIdType vtkid)
Set the id at location i.
vtkCellData * GetCellData()
Return a pointer to this dataset's cell data.
unsigned char GetCellType(vtkIdType cellId)
Return the type of cell.
vtkIdType GetId(const vtkIdType i)
Return the id at location i.
ValueType GetTypedComponent(vtkIdType tupleIdx, int comp) const
Get component comp of the tuple at tupleIdx.
dataset represents arbitrary combinations of all possible cell types
vtkDataArray * GetHigherOrderDegrees()
vtkIdType GetNumberOfIds()
Return the number of id's in the list.
vtkCellArray * GetCells()
Return the unstructured grid connectivity array.
@ VTK_HIGHER_ORDER_HEXAHEDRON