63 #ifndef __vtkPolyData_h
64 #define __vtkPolyData_h
113 vtkPointLocator *locator = NULL);
176 void Allocate(
vtkIdType numCells=1000,
int extSize=1000);
198 int InsertNextCell(
int type,
int npts,
vtkIdType *pts);
206 int InsertNextCell(
int type,
vtkIdList *pts);
220 void BuildLinks(
int initialSize=0);
250 int IsTriangle(
int v1,
int v2,
int v3);
291 void RemoveDeletedCells();
300 int InsertNextLinkedPoint(
int numLinks);
301 int InsertNextLinkedPoint(
double x[3],
int numLinks);
307 int InsertNextLinkedCell(
int type,
int npts,
vtkIdType *pts);
322 void RemoveCellReference(
vtkIdType cellId);
346 void ResizeCellList(
vtkIdType ptId,
int size);
354 void GetUpdateExtent(
int &piece,
int &numPieces,
int &ghostLevel);
358 virtual int* GetUpdateExtent();
359 virtual void GetUpdateExtent(
int& x0,
int& x1,
int& y0,
int& y1,
361 virtual void GetUpdateExtent(
int extent[6]);
366 virtual int GetPiece();
367 virtual int GetNumberOfPieces();
371 virtual int GetGhostLevel();
388 void RemoveGhostCells(
int level);
416 ERR_NO_SUCH_FIELD = -4,
417 ERR_INCORRECT_FIELD = -3,
418 ERR_NON_MANIFOLD_STAR = -2,
425 int GetScalarFieldCriticalIndex (
vtkIdType pointId,
427 int GetScalarFieldCriticalIndex (
vtkIdType pointId,
int fieldId);
428 int GetScalarFieldCriticalIndex (
vtkIdType pointId,
const char* fieldName);
493 unsigned short int n1;
507 if ( (tVerts[0] == tVerts2[0] || tVerts[0] == tVerts2[1] ||
508 tVerts[0] == tVerts2[2]) &&
509 (tVerts[1] == tVerts2[0] || tVerts[1] == tVerts2[1] ||
510 tVerts[1] == tVerts2[2]) &&
511 (tVerts[2] == tVerts2[0] || tVerts[2] == tVerts2[1] ||
512 tVerts[2] == tVerts2[2]) )
528 if ( pts[i] == ptId )
581 for ( i=0; i < nverts; i++ )
583 if ( verts[i] == oldPtId )
static vtkCellArray * Dummy
void ResizeCellList(vtkIdType ptId, int size)
virtual vtkIdType GetNumberOfCells()=0
virtual void GetPointCells(vtkIdType ptId, vtkIdList *cellIds)=0
void AddCellReference(vtkIdType cellId, vtkIdType ptId)
object represents upward pointers from points to list of cells using each point
void DeleteCell(vtkIdType cellId)
void ReplaceCellPoint(vtkIdType cellId, vtkIdType oldPtId, vtkIdType newPtId)
abstract class to specify dataset behavior
a cell that represents a 3D point
void GetPointCells(vtkIdType ptId, vtkIdList *cellIds)
static vtkPointSet * GetData(vtkInformation *info)
void AddCellReference(vtkIdType cellId)
void CopyStructure(vtkDataSet *pd)
unsigned short GetNcells(vtkIdType ptId)
a cell that represents a 2D quadrilateral
abstract class for specifying dataset behavior
unsigned long GetActualMemorySize()
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)
void RemoveCellReference(vtkIdType cellId)
void DeletePoint(vtkIdType ptId)
provides thread-safe access to cells
vtkPolyVertex * PolyVertex
a cell that represents a triangle strip
cell represents a 1D line
a simple class to control print indentation
virtual int GetMaxCellSize()=0
int IsTriangle(int v1, int v2, int v3)
list of point or cell ids
virtual void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds)=0
abstract superclass for arrays of numeric data
a cell that represents an n-sided polygon
void ResizeCellList(vtkIdType ptId, int size)
virtual void GetCellNeighbors(vtkIdType cellId, vtkIdList *ptIds, vtkIdList *cellIds)
void PrintSelf(ostream &os, vtkIndent indent)
int IsPointUsedByCell(vtkIdType ptId, vtkIdType cellId)
object to represent cell connectivity
void DeepCopy(vtkDataObject *src)
a cell that represents a triangle
void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds)
void DeleteCell(vtkIdType cellId)
void DeletePoint(vtkIdType ptId)
void ShallowCopy(vtkDataObject *src)
helper class to get VTK data object types as string and instantiate them
object provides direct access to cells in vtkCellArray and type information
virtual vtkCell * GetCell(vtkIdType cellId)=0
virtual void GetCellBounds(vtkIdType cellId, double bounds[6])
virtual int GetCellType(vtkIdType cellId)=0
void RemoveCellReference(vtkIdType cellId, vtkIdType ptId)
vtkTriangleStrip * TriangleStrip