Go to the documentation of this file.
67 #include "vtkCommonDataModelModule.h"
83 struct vtkPolyDataDummyContainter;
217 void Allocate(
vtkIdType numCells=1000,
int extSize=1000);
276 void BuildLinks(
int initialSize=0);
325 int IsTriangle(
int v1,
int v2,
int v3);
376 void RemoveDeletedCells();
386 vtkIdType InsertNextLinkedPoint(
int numLinks);
387 vtkIdType InsertNextLinkedPoint(
double x[3],
int numLinks);
413 void RemoveCellReference(
vtkIdType cellId);
454 virtual int GetPiece();
455 virtual int GetNumberOfPieces();
461 virtual int GetGhostLevel();
486 void RemoveGhostCells();
516 ERR_NO_SUCH_FIELD = -4,
517 ERR_INCORRECT_FIELD = -3,
518 ERR_NON_MANIFOLD_STAR = -2,
525 int GetScalarFieldCriticalIndex (
vtkIdType pointId,
527 int GetScalarFieldCriticalIndex (
vtkIdType pointId,
int fieldId);
528 int GetScalarFieldCriticalIndex (
vtkIdType pointId,
const char* fieldName);
599 unsigned short int n1;
613 if ( (tVerts[0] == tVerts2[0] || tVerts[0] == tVerts2[1] ||
614 tVerts[0] == tVerts2[2]) &&
615 (tVerts[1] == tVerts2[0] || tVerts[1] == tVerts2[1] ||
616 tVerts[1] == tVerts2[2]) &&
617 (tVerts[2] == tVerts2[0] || tVerts[2] == tVerts2[1] ||
618 tVerts[2] == tVerts2[2]) )
634 if ( pts[i] == ptId )
687 for ( i=0; i < nverts; i++ )
689 if ( verts[i] == oldPtId )
727 cells->
GetCell(loc, npts, pts);
object provides direct access to cells in vtkCellArray and type information
void GetPointCells(vtkIdType ptId, vtkIdList *cellIds) override
Efficient method to obtain cells using a particular point.
void ReplaceCellPoint(vtkIdType cellId, vtkIdType oldPtId, vtkIdType newPtId)
Replace a point in the cell connectivity list with a different point.
a cell that represents an n-sided polygon
quickly locate points in 3-space
an empty cell used as a place-holder during processing
unsigned short GetNcells(vtkIdType ptId)
Get the number of cells using the point specified by ptId.
vtkPolyVertex * PolyVertex
void Squeeze() override
Reclaim any unused memory.
void RemoveCellReference(vtkIdType cellId)
Remove all references to cell in cell structure.
ValueType * GetPointer(vtkIdType valueIdx)
Get the address of a particular data index.
vtkIdTypeArray * GetData()
Return the underlying data as a data array.
abstract superclass for arrays of numeric data
static vtkPointSet * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
a cell that represents a 3D point
bool NeedToBuildCells()
Check if BuildCells is needed.
vtkIdType * GetCells(vtkIdType ptId)
Return a list of cell ids using the point.
void DeletePoint(vtkIdType ptId)
Delete point (and storage) by destroying links to using cells.
cell represents a 1D line
void DeletePoint(vtkIdType ptId)
Mark a point/cell as deleted from this vtkPolyData.
vtkCell * GetCell(vtkIdType cellId) override
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
int GetDataObjectType() override
Return what type of dataset this is.
void AddCellReference(vtkIdType cellId)
Add references to cell in cell structure.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_SIZEHINT(...)
cell represents a set of 1D lines
unsigned char GetCellType(vtkIdType cellId)
Return the type of cell.
void GetCell(vtkIdType loc, vtkIdType &npts, vtkIdType *&pts)
Internal method used to retrieve a cell given an offset into the internal array.
void DeepCopy(vtkDataObject *src) override
virtual void GetCellNeighbors(vtkIdType cellId, vtkIdList *ptIds, vtkIdList *cellIds)
Topological inquiry to get all cells using list of points exclusive of cell specified (e....
abstract class to specify cell behavior
void RemoveCellReference(vtkIdType cellId, vtkIdType ptId)
Delete the reference to the cell (cellId) from the point (ptId).
virtual void GetPointCells(vtkIdType ptId, vtkIdList *cellIds)=0
Topological inquiry to get cells using point.
a simple class to control print indentation
object represents upward pointers from points to list of cells using each point
vtkIdType GetCellLocation(vtkIdType cellId)
Return the location of the cell in the associated vtkCellArray.
object to represent cell connectivity
int IsTriangle(int v1, int v2, int v3)
Given three vertices, determine whether it's a triangle.
list of point or cell ids
void Initialize() override
Reset to an empty state and free any memory.
vtkMTimeType GetMTime() override
Get MTime which also considers its vtkPoints MTime.
a cell that represents a triangle
abstract class to specify dataset behavior
virtual void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds)=0
Topological inquiry to get points defining cell.
void DeleteCell(vtkIdType cellId)
Delete cell by setting to nullptr cell type.
int IsPointUsedByCell(vtkIdType ptId, vtkIdType cellId)
Determine whether a point is used by a particular cell.
void ResizeCellList(vtkIdType ptId, int size)
Resize the list of cells using a particular point.
abstract class for specifying dataset behavior
concrete dataset represents vertices, lines, polygons, and triangle strips
static vtkPolyDataDummyContainter DummyContainer
void ShallowCopy(vtkDataObject *src) override
Shallow and Deep copy.
provides thread-safe access to cells
virtual vtkIdType GetNumberOfCells()=0
Determine the number of cells composing the dataset.
general representation of visualization data
virtual int GetCellType(vtkIdType cellId)=0
Get type of cell with cellId such that: 0 <= cellId < NumberOfCells.
unsigned long GetActualMemorySize() override
Return the actual size of the data in kibibytes (1024 bytes).
void DeleteCell(vtkIdType cellId)
void AddCellReference(vtkIdType cellId, vtkIdType ptId)
Add the reference to the cell (cellId) from the point (ptId).
virtual void GetCellBounds(vtkIdType cellId, double bounds[6])
Get the bounds of the cell with cellId such that: 0 <= cellId < NumberOfCells.
void CopyStructure(vtkDataSet *pd) override
Copy the geometric structure of an input point set object.
vtkTriangleStrip * TriangleStrip
virtual int GetMaxCellSize()=0
Convenience method returns largest cell size in dataset.
a cell that represents a triangle strip
void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds) override
Copy a cells point ids into list provided.
a cell that represents a 2D quadrilateral
void ComputeBounds() override
Compute the (X, Y, Z) bounds of the data.
void ResizeCellList(vtkIdType ptId, int size)
Change the length of a point's link list (i.e., list of cells using a point) by the size specified.
static vtkDataObject * New()
virtual vtkCell * GetCell(vtkIdType cellId)=0
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
vtkTypeUInt32 vtkMTimeType
cell represents a set of 0D vertices