Man Page for vtkUnstructuredGrid
Table of Contents

NAME

vtkUnstructuredGrid - dataset represents arbitrary combinations of all possible cell types

SYNOPSIS


#include "/opt/vtk-c++/common/vtkUnstructuredGrid.h"

class VTK_EXPORT vtkUnstructuredGrid : public vtkPointSet

DESCRIPTION

vtkUnstructuredGrid is a data object that is a concrete implementation of vtkDataSet. vtkUnstructuredGrid represents any combinations of any cell types. This includes 0D (e.g., points), 1D (e.g., lines, polylines), 2D (e.g., triangles, polygons), and 3D (e.g., hexahedron, tetrahedron).

SUMMARY

void Allocate (int numCells, int extSize)
Allocate memory space for data insertion. Execute this method before inserting any cells into object.

vtkUnstructuredGrid(const vtkUnstructuredGrid& ug) : vtkPointSet(ug)
Shallow construction of object.

void CopyStructure(vtkDataSet *ds)
Copy the geometric and topological structure of an input unstructured grid.

int InsertNextCell(int type, vtkIdList& ptIds)
Insert/create cell in object by type and list of point ids defining cell topology.

int InsertNextCell(int type, int npts, int *pts)
Insert/create cell in object by type and list of point ids defining cell topology.

void GetCellPoints(int cellId, int& npts, int* &pts)
Return a pointer to a list of point ids defining cell. (More efficient than alternative method.)

void RemoveReferenceToCell(int ptId, int cellId)
Remove a reference to a cell in a particular point's link list. You may also consider using RemoveCellReference() to remove the references from all the cell's points to the cell. This operator does not reallocate memory; use the operator ResizeCellList() to do this if necessary.

void AddReferenceToCell(int ptId, int cellId)
Add a reference to a cell in a particular point's link list. (You may also consider using AddCellReference() to add the references from all the cell's points to the cell.) This operator does not realloc memory; use the operator ResizeCellList() to do this if necessary.

void ResizeCellList(int ptId, int size)
Resize the list of cells using a particular point. (This operator assumes that BuildLinks() has been called.)

void ReplaceCell(int cellId, int npts, int *pts)
Replace the points defining cell "cellId" with a new set of points. This operator is (typically) used when links from points to cells have not been built (i.e., BuildLinks() has not been executed). Use the operator ReplaceLinkedCell() to replace a cell when cell structure has been built.

int InsertNextLinkedCell(int type, int npts, int *pts) Add a new cell to the cell data structure (after cell links have been built). This method adds the cell and then updates the links from the points to the cells. (Memory is allocated as necessary.)


Table of Contents