61 #include "vtkCommonDataModelModule.h" 77 struct vtkPolyDataDummyContainter;
105 int GetCellType(
vtkIdType cellId) VTK_OVERRIDE;
106 void GetCellBounds(
vtkIdType cellId,
double bounds[6]) VTK_OVERRIDE;
134 void ComputeBounds() VTK_OVERRIDE;
142 void Squeeze() VTK_OVERRIDE;
147 int GetMaxCellSize() VTK_OVERRIDE;
211 void Allocate(
vtkIdType numCells=1000,
int extSize=1000);
262 bool NeedToBuildCells() {
return this->Cells == 0; }
270 void BuildLinks(
int initialSize=0);
319 int IsTriangle(
int v1,
int v2,
int v3);
370 void RemoveDeletedCells();
380 vtkIdType InsertNextLinkedPoint(
int numLinks);
381 vtkIdType InsertNextLinkedPoint(
double x[3],
int numLinks);
407 void RemoveCellReference(
vtkIdType cellId);
448 virtual
int GetPiece();
449 virtual
int GetNumberOfPieces();
455 virtual
int GetGhostLevel();
465 unsigned long GetActualMemorySize() VTK_OVERRIDE;
480 void RemoveGhostCells();
510 ERR_NO_SUCH_FIELD = -4,
511 ERR_INCORRECT_FIELD = -3,
512 ERR_NON_MANIFOLD_STAR = -2,
519 int GetScalarFieldCriticalIndex (
vtkIdType pointId,
521 int GetScalarFieldCriticalIndex (
vtkIdType pointId,
int fieldId);
522 int GetScalarFieldCriticalIndex (
vtkIdType pointId,
const char* fieldName);
547 static vtkPolyDataDummyContainter DummyContainer;
567 void operator=(
const vtkPolyData&) VTK_DELETE_FUNCTION;
579 unsigned short int n1;
593 if ( (tVerts[0] == tVerts2[0] || tVerts[0] == tVerts2[1] ||
594 tVerts[0] == tVerts2[2]) &&
595 (tVerts[1] == tVerts2[0] || tVerts[1] == tVerts2[1] ||
596 tVerts[1] == tVerts2[2]) &&
597 (tVerts[2] == tVerts2[0] || tVerts[2] == tVerts2[1] ||
598 tVerts[2] == tVerts2[2]) )
614 if ( pts[i] == ptId )
667 for ( i=0; i < nverts; i++ )
669 if ( verts[i] == oldPtId )
707 cells->
GetCell(loc, npts, pts);
740 cell = cells->
GetData()->GetPointer(loc);
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...
virtual vtkIdType GetNumberOfCells()=0
Determine the number of cells composing the dataset.
virtual void GetPointCells(vtkIdType ptId, vtkIdList *cellIds)=0
Topological inquiry to get cells using point.
void AddCellReference(vtkIdType cellId, vtkIdType ptId)
Add the reference to the cell (cellId) from the point (ptId).
object represents upward pointers from points to list of cells using each point
void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds) override
Copy a cells point ids into list provided.
static vtkDataObject * New()
quickly locate points in 3-space
void DeleteCell(vtkIdType cellId)
Delete cell by setting to NULL cell type.
void ReplaceCellPoint(vtkIdType cellId, vtkIdType oldPtId, vtkIdType newPtId)
Replace a point in the cell connectivity list with a different point.
abstract class to specify dataset behavior
a cell that represents a 3D point
void GetPointCells(vtkIdType ptId, vtkIdList *cellIds) override
Efficient method to obtain cells using a particular point.
vtkIdType GetCellLocation(int cellId)
Return the location of the cell in the associated vtkCellArray.
void AddCellReference(vtkIdType cellId)
Add references to cell in cell structure.
unsigned short GetNcells(vtkIdType ptId)
Get the number of cells using the point specified by ptId.
a cell that represents a 2D quadrilateral
abstract class for specifying dataset behavior
an empty cell used as a place-holder during processing
concrete dataset represents vertices, lines, polygons, and triangle strips
cell represents a set of 0D vertices
vtkIdType * GetCells(vtkIdType ptId)
Return a list of cell ids using the point.
void RemoveCellReference(vtkIdType cellId)
Remove all references to cell in cell structure.
void DeletePoint(vtkIdType ptId)
Mark a point/cell as deleted from this vtkPolyData.
provides thread-safe access to cells
int GetDataObjectType() override
Return what type of dataset this is.
a cell that represents a triangle strip
cell represents a 1D line
abstract class to specify cell behavior
vtkCell * GetCell(vtkIdType cellId) override
Standard vtkDataSet interface.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
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.
virtual void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds)=0
Topological inquiry to get points defining cell.
abstract superclass for arrays of numeric data
a cell that represents an n-sided polygon
void ResizeCellList(vtkIdType ptId, int size)
Resize the list of cells using a particular point.
virtual void GetCellNeighbors(vtkIdType cellId, vtkIdList *ptIds, vtkIdList *cellIds)
Topological inquiry to get all cells using list of points exclusive of cell specified (e...
int IsPointUsedByCell(vtkIdType ptId, vtkIdType cellId)
Determine whether a point is used by a particular cell.
object to represent cell connectivity
a cell that represents a triangle
unsigned char GetCellType(int cellId)
Return the type of cell.
vtkIdTypeArray * GetData()
Return the underlying data as a data array.
void DeleteCell(vtkIdType cellId)
Mark a point/cell as deleted from this vtkPolyData.
void DeletePoint(vtkIdType ptId)
Delete point (and storage) by destroying links to using cells.
void CopyStructure(vtkDataSet *pd) override
Copy the geometric structure of an input point set object.
general representation of visualization data
object provides direct access to cells in vtkCellArray and type information
virtual vtkCell * GetCell(vtkIdType cellId)=0
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
void GetCell(vtkIdType loc, vtkIdType &npts, vtkIdType *&pts)
Internal method used to retrieve a cell given an offset into the internal array.
cell represents a set of 1D lines
void RemoveCellReference(vtkIdType cellId, vtkIdType ptId)
Delete the reference to the cell (cellId) from the point (ptId).