22 #ifndef vtkUnstructuredGrid_h
23 #define vtkUnstructuredGrid_h
27 #include "vtkCommonDataModelModule.h"
33 VTK_ABI_NAMESPACE_BEGIN
72 return this->AllocateExact(numCells, numCells * maxCellSize);
97 this->AllocateExact(numCells, numCells);
169 this->Connectivity->GetCellAtId(cellId, npts, pts);
190 this->Connectivity->GetCellAtId(cellId, npts, pts, ptIds);
219 void Squeeze() override;
224 void Initialize() override;
229 int GetMaxCellSize() override;
236 int GetMaxSpatialDimension() override;
237 int GetMinSpatialDimension() override;
251 vtkGetSmartPointerMacro(Links, vtkAbstractCellLinks);
339 return this->IsCellBoundary(cellId, npts, ptIds, neighborCellId);
358 virtual int GetPiece();
359 virtual int GetNumberOfPieces();
365 virtual int GetGhostLevel();
402 void RemoveGhostCells();
433 int InitializeFacesRepresentation(
vtkIdType numPrevCells);
459 static void DecomposeAPolyhedronCell(
const vtkIdType* polyhedronCellStream,
vtkIdType& nCellpts,
474 static void DecomposeAPolyhedronCell(
vtkIdType nCellFaces,
const vtkIdType* inFaceStream,
540 ~vtkUnstructuredGrid() override;
598 static
void DecomposeAPolyhedronCell(const
vtkIdType* cellStream,
vtkIdType& numCellPts,
601 static
void DecomposeAPolyhedronCell(
vtkIdType nCellFaces, const
vtkIdType* cellStream,
607 static
void DecomposeAPolyhedronCell(const
vtkIdType* cellStream,
vtkIdType& numCellPts,
611 static
void DecomposeAPolyhedronCell(
vtkIdType nCellFaces, const
vtkIdType* cellStream,
617 vtkUnstructuredGrid(const vtkUnstructuredGrid&) = delete;
618 void operator=(const vtkUnstructuredGrid&) = delete;
623 VTK_ABI_NAMESPACE_END
vtkIdType GetCellSize(vtkIdType) override
This method always returns 1, as all cells are point in a pure vtkPointSet.
bool AllocateEstimate(vtkIdType numCells, vtkIdType maxCellSize)
Pre-allocate memory in internal data structures.
static vtkUnstructuredGridBase * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
vtkTypeUInt32 vtkMTimeType
abstract class to specify dataset behavior
vtkDataArray * GetCellTypes()
an abstract base class for classes that build topological links from points to cells ...
void Allocate(vtkIdType numCells=1000, int extSize=1000) override
Method allocates initial storage for the cell connectivity.
bool IsCellBoundary(vtkIdType cellId, vtkIdType npts, const vtkIdType *ptIds)
A topological inquiry to determine whether a topological entity (e.g., point, edge, or face) defined by the point ids (ptIds of length npts) is a boundary entity of a specified cell (indicated by cellId).
void GetCellPoints(vtkIdType, vtkIdList *idList) override
Topological inquiry to get points defining cell.
dynamic, self-adjusting array of vtkIdType
vtkIdType GetNumberOfCells() override
This method always returns 0, as there are no cells in a vtkPointSet.
Hold a reference to a vtkObjectBase instance.
virtual int GetCellNumberOfFaces(vtkIdType cellId, unsigned char &cellType, vtkGenericCell *cell)
Get the number of faces of a cell.
virtual vtkMTimeType GetMeshMTime()
Abstract method which return the mesh (geometry/topology) modification time.
int GetCellType(vtkIdType) override
This method always returns VTK_EMPTY_CELL, as there is no cell in a vtkPointSet.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
Detect and break reference loops.
provides thread-safe access to cells
abstract class to specify cell behavior
#define VTK_DEPRECATED_IN_9_6_0(reason)
#define VTK_MARSHALMANUAL
virtual void GetIdsOfCellsOfType(int type, vtkIdTypeArray *array)=0
Fill vtkIdTypeArray container with list of cell Ids.
a simple class to control print indentation
static vtkPointSet * New()
Standard instantiation method.
list of point or cell ids
virtual void GetDistinctCellTypes(vtkCellTypes *types)
Get a list of types of cells in a dataset.
dataset represents arbitrary combinations of all possible cell types
abstract superclass for arrays of numeric data
void GetCellPoints(vtkIdType cellId, vtkIdType &npts, vtkIdType const *&pts)
A higher-performing variant of the virtual vtkDataSet::GetCellPoints() for unstructured grids...
vtkIdType GetNumberOfIds() const noexcept
Return the number of id's in the list.
virtual void GetCellTypes(vtkCellTypes *types)
Get a list of types of cells in a dataset.
virtual void GetCellNeighbors(vtkIdType cellId, vtkIdList *ptIds, vtkIdList *cellIds)
Topological inquiry to get all cells using list of points exclusive of cell specified (e...
#define VTK_SIZEHINT(...)
int GetDataObjectType() VTK_FUTURE_CONST override
Standard vtkDataSet API methods.
dynamic, self-adjusting array of unsigned char
static vtkPointSet * ExtendedNew()
object to represent cell connectivity
vtkCellIterator * NewCellIterator() override
Return an iterator that traverses the cells in this data set.
virtual int IsHomogeneous()=0
Traverse cells and determine if cells are all of the same type.
void GetPointCells(vtkIdType, vtkIdList *idList) override
Topological inquiry to get cells using point.
void DeepCopy(vtkDataObject *src) override
Shallow and Deep copy.
Efficient cell iterator for vtkDataSet topologies.
unsigned long GetActualMemorySize() override
Return the actual size of the data in kibibytes (1024 bytes).
void ShallowCopy(vtkDataObject *src) override
Shallow and Deep copy.
vtkCell * GetCell(vtkIdType) override
This method always return a vtkEmptyCell, as there is no cell in a vtkPointSet.
void CopyStructure(vtkDataSet *pd) override
Copy the geometric structure of an input point set object.
void GetCellPoints(vtkIdType cellId, vtkIdType &npts, vtkIdType const *&pts, vtkIdList *ptIds) override
A higher-performing variant of the virtual vtkDataSet::GetCellPoints() for unstructured grids...
general representation of visualization data
object provides direct access to cells in vtkCellArray and type information
dataset represents arbitrary combinations of all possible cell types.
virtual vtkCell * GetCell(vtkIdType cellId)=0
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
virtual void GetCellBounds(vtkIdType cellId, double bounds[6])
Get the bounds of the cell with cellId such that: 0 <= cellId < NumberOfCells.
void GetCellNeighbors(vtkIdType cellId, vtkIdList *ptIds, vtkIdList *cellIds) override
A topological inquiry to retrieve all of the cells using list of points exclusive of the current cell...
vtkIdType * GetPointer(vtkIdType i)
Get a pointer to a particular data index.
VTKIOCATALYSTCONDUIT_EXPORT void SetPolyhedralCells(vtkUnstructuredGrid *grid, vtkCellArray *elements, vtkCellArray *subelements)
Create polyhedron in grid from elements and subelements.