|
virtual const char * | GetClassName () |
|
virtual int | IsA (const char *type) |
|
void | PrintSelf (ostream &os, vtkIndent indent) |
|
vtkIdType | InsertNextCell (int type, vtkIdType npts, vtkIdType *ptIds) |
|
vtkIdType | InsertNextCell (int type, vtkIdList *ptIds) |
|
vtkIdType | InsertNextCell (int type, vtkIdType npts, vtkIdType *ptIds, vtkIdType nfaces, vtkIdType *faces) |
|
int | GetCellType (vtkIdType cellId) |
|
vtkUnsignedCharArray * | GetCellTypesArray () |
|
vtkIdTypeArray * | GetCellLocationsArray () |
|
void | Squeeze () |
|
void | Initialize () |
|
int | GetMaxCellSize () |
|
void | BuildLinks () |
|
vtkCellLinks * | GetCellLinks () |
|
virtual void | GetCellPoints (vtkIdType cellId, vtkIdType &npts, vtkIdType *&pts) |
|
void | GetFaceStream (vtkIdType cellId, vtkIdList *ptIds) |
|
void | GetFaceStream (vtkIdType cellId, vtkIdType &nfaces, vtkIdType *&ptIds) |
|
vtkCellArray * | GetCells () |
|
void | ReplaceCell (vtkIdType cellId, int npts, vtkIdType *pts) |
|
vtkIdType | InsertNextLinkedCell (int type, int npts, vtkIdType *pts) |
|
void | RemoveReferenceToCell (vtkIdType ptId, vtkIdType cellId) |
|
void | AddReferenceToCell (vtkIdType ptId, vtkIdType cellId) |
|
void | ResizeCellList (vtkIdType ptId, int size) |
|
void | GetUpdateExtent (int &piece, int &numPieces, int &ghostLevel) |
|
virtual int | GetGhostLevel () |
|
unsigned long | GetActualMemorySize () |
|
void | GetIdsOfCellsOfType (int type, vtkIdTypeArray *array) |
|
int | IsHomogeneous () |
|
void | RemoveGhostCells (int level) |
|
vtkIdType * | GetFaces (vtkIdType cellId) |
|
int | InitializeFacesRepresentation (vtkIdType numPrevCells) |
|
|
int | GetDataObjectType () |
|
virtual void | Allocate (vtkIdType numCells=1000, int extSize=1000) |
|
|
void | Reset () |
|
virtual void | CopyStructure (vtkDataSet *ds) |
|
vtkIdType | GetNumberOfCells () |
|
virtual vtkCell * | GetCell (vtkIdType cellId) |
|
virtual void | GetCell (vtkIdType cellId, vtkGenericCell *cell) |
|
virtual void | GetCellBounds (vtkIdType cellId, double bounds[6]) |
|
virtual void | GetCellPoints (vtkIdType cellId, vtkIdList *ptIds) |
|
void | GetPointCells (vtkIdType ptId, vtkIdList *cellIds) |
|
|
void | SetCells (int type, vtkCellArray *cells) |
|
void | SetCells (int *types, vtkCellArray *cells) |
|
void | SetCells (vtkUnsignedCharArray *cellTypes, vtkIdTypeArray *cellLocations, vtkCellArray *cells) |
|
void | SetCells (vtkUnsignedCharArray *cellTypes, vtkIdTypeArray *cellLocations, vtkCellArray *cells, vtkIdTypeArray *faceLocations, vtkIdTypeArray *faces) |
|
|
virtual void | GetCellNeighbors (vtkIdType cellId, vtkIdList *ptIds, vtkIdList *cellIds) |
|
|
virtual int * | GetUpdateExtent () |
|
virtual void | GetUpdateExtent (int &x0, int &x1, int &y0, int &y1, int &z0, int &z1) |
|
virtual void | GetUpdateExtent (int extent[6]) |
|
|
virtual int | GetPiece () |
|
virtual int | GetNumberOfPieces () |
|
|
virtual void | ShallowCopy (vtkDataObject *src) |
|
virtual void | DeepCopy (vtkDataObject *src) |
|
|
vtkIdTypeArray * | GetFaces () |
|
vtkIdTypeArray * | GetFaceLocations () |
|
void | PrintSelf (ostream &os, vtkIndent indent) |
|
void | Initialize () |
|
unsigned long | GetMTime () |
|
void | ComputeBounds () |
|
unsigned long | GetActualMemorySize () |
|
vtkIdType | GetNumberOfPoints () |
|
double * | GetPoint (vtkIdType ptId) |
|
void | GetPoint (vtkIdType ptId, double x[3]) |
|
virtual vtkIdType | FindPoint (double x[3]) |
|
vtkIdType | FindPoint (double x, double y, double z) |
|
virtual vtkIdType | FindCell (double x[3], vtkCell *cell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights) |
|
virtual vtkIdType | FindCell (double x[3], vtkCell *cell, vtkGenericCell *gencell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights) |
|
virtual void | SetPoints (vtkPoints *) |
|
virtual vtkPoints * | GetPoints () |
|
void | ShallowCopy (vtkDataObject *src) |
|
void | DeepCopy (vtkDataObject *src) |
|
void | PrintSelf (ostream &os, vtkIndent indent) |
|
virtual void | CopyAttributes (vtkDataSet *ds) |
|
virtual void | GetCellTypes (vtkCellTypes *types) |
|
unsigned long int | GetMTime () |
|
vtkCellData * | GetCellData () |
|
vtkPointData * | GetPointData () |
|
double * | GetBounds () |
|
void | GetBounds (double bounds[6]) |
|
double * | GetCenter () |
|
void | GetCenter (double center[3]) |
|
double | GetLength () |
|
void | Initialize () |
|
virtual void | GetScalarRange (double range[2]) |
|
double * | GetScalarRange () |
|
unsigned long | GetActualMemorySize () |
|
int | CheckAttributes () |
|
virtual void | GenerateGhostLevelArray () |
|
virtual vtkFieldData * | GetAttributesAsFieldData (int type) |
|
virtual vtkIdType | GetNumberOfElements (int type) |
|
vtkIdType | FindPoint (double x, double y, double z) |
|
virtual vtkCell * | FindAndGetCell (double x[3], vtkCell *cell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights) |
|
int | GetDataObjectType () |
|
void | ShallowCopy (vtkDataObject *src) |
|
void | DeepCopy (vtkDataObject *src) |
|
|
static vtkUnstructuredGrid * | New () |
|
static int | IsTypeOf (const char *type) |
|
static vtkUnstructuredGrid * | SafeDownCast (vtkObject *o) |
|
static void | DecomposeAPolyhedronCell (vtkIdType *polyhedronCellStream, vtkIdType &nCellpts, vtkIdType &nCellfaces, vtkCellArray *cellArray, vtkIdTypeArray *faces) |
|
|
static vtkUnstructuredGrid * | GetData (vtkInformation *info) |
|
static vtkUnstructuredGrid * | GetData (vtkInformationVector *v, int i=0) |
|
|
static void | DecomposeAPolyhedronCell (vtkCellArray *polyhedronCellArray, vtkIdType &nCellpts, vtkIdType &nCellfaces, vtkCellArray *cellArray, vtkIdTypeArray *faces) |
|
|
static void | DecomposeAPolyhedronCell (vtkIdType nCellFaces, vtkIdType *inFaceStream, vtkIdType &nCellpts, vtkCellArray *cellArray, vtkIdTypeArray *faces) |
|
|
static void | ConvertFaceStreamPointIds (vtkIdList *faceStream, vtkIdType *idMap) |
|
|
static void | ConvertFaceStreamPointIds (vtkIdType nfaces, vtkIdType *faceStream, vtkIdType *idMap) |
|
static int | IsTypeOf (const char *type) |
|
static vtkPointSet * | SafeDownCast (vtkObject *o) |
|
static vtkPointSet * | GetData (vtkInformation *info) |
|
static vtkPointSet * | GetData (vtkInformationVector *v, int i=0) |
|
static int | IsTypeOf (const char *type) |
|
static vtkDataSet * | SafeDownCast (vtkObject *o) |
|
static vtkDataSet * | GetData (vtkInformation *info) |
|
static vtkDataSet * | GetData (vtkInformationVector *v, int i=0) |
|
dataset represents arbitrary combinations of all possible cell types
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, polyhedron, etc.).
- Examples:
- vtkUnstructuredGrid (Examples)
- Tests:
- vtkUnstructuredGrid (Tests)
Definition at line 78 of file vtkUnstructuredGrid.h.
Insert/create cell in object by type and list of point ids defining cell topology. Most cells require just a type which implicitly defines a set of points and their ordering. For non-polyhedron cell type, npts is the number of unique points in the cell. pts are the list of global point Ids. For polyhedron cell, a special input format is required. npts is the number of faces in the cell. ptIds is the list of face stream: (numFace0Pts, id1, id2, id3, numFace1Pts,id1, id2, id3, ...)
Insert/create cell in object by a list of point ids defining cell topology. Most cells require just a type which implicitly defines a set of points and their ordering. For non-polyhedron cell type, ptIds is the list of global Ids of unique cell points. For polyhedron cell, a special ptIds input format is required: (numCellFaces, numFace0Pts, id1, id2, id3, numFace1Pts,id1, id2, id3, ...)
Get the face stream of a polyhedron cell in the following format: (numCellFaces, numFace0Pts, id1, id2, id3, numFace1Pts,id1, id2, id3, ...). If the requested cell is not a polyhedron, then the standard GetCellPoints is called to return a list of unique point ids (id1, id2, id3, ...).
Get the number of face and the face stream of a polyhedron cell. Result ptIds is in the following format: (numFace0Pts, id1, id2, id3, numFace1Pts,id1, id2, id3, ...). If the requested cell is not a polyhedron, then the standard GetCellPoints is called to return the number of points and a list of unique point ids (id1, id2, id3, ...).
void vtkUnstructuredGrid::SetCells |
( |
int |
type, |
|
|
vtkCellArray * |
cells |
|
) |
| |
Special methods specific to vtkUnstructuredGrid for defining the cells composing the dataset. Most cells require just arrays of cellTypes, cellLocations and cellConnectivities which implicitly define the set of points in each cell and their ordering. In those cases the cellConnectivities are of the format (numFace0Pts, id1, id2, id3, numFace1Pts, id1, id2, id3...). However, some cells like vtkPolyhedron require points plus a list of faces. To handle vtkPolyhedron, SetCells() support a special input cellConnectivities format (numCellFaces, numFace0Pts, id1, id2, id3, numFace1Pts,id1, id2, id3, ...) The functions use vtkPolyhedron::DecomposeAPolyhedronCell() to convert polyhedron cells into standard format.
void vtkUnstructuredGrid::SetCells |
( |
int * |
types, |
|
|
vtkCellArray * |
cells |
|
) |
| |
Special methods specific to vtkUnstructuredGrid for defining the cells composing the dataset. Most cells require just arrays of cellTypes, cellLocations and cellConnectivities which implicitly define the set of points in each cell and their ordering. In those cases the cellConnectivities are of the format (numFace0Pts, id1, id2, id3, numFace1Pts, id1, id2, id3...). However, some cells like vtkPolyhedron require points plus a list of faces. To handle vtkPolyhedron, SetCells() support a special input cellConnectivities format (numCellFaces, numFace0Pts, id1, id2, id3, numFace1Pts,id1, id2, id3, ...) The functions use vtkPolyhedron::DecomposeAPolyhedronCell() to convert polyhedron cells into standard format.
Special methods specific to vtkUnstructuredGrid for defining the cells composing the dataset. Most cells require just arrays of cellTypes, cellLocations and cellConnectivities which implicitly define the set of points in each cell and their ordering. In those cases the cellConnectivities are of the format (numFace0Pts, id1, id2, id3, numFace1Pts, id1, id2, id3...). However, some cells like vtkPolyhedron require points plus a list of faces. To handle vtkPolyhedron, SetCells() support a special input cellConnectivities format (numCellFaces, numFace0Pts, id1, id2, id3, numFace1Pts,id1, id2, id3, ...) The functions use vtkPolyhedron::DecomposeAPolyhedronCell() to convert polyhedron cells into standard format.
Special methods specific to vtkUnstructuredGrid for defining the cells composing the dataset. Most cells require just arrays of cellTypes, cellLocations and cellConnectivities which implicitly define the set of points in each cell and their ordering. In those cases the cellConnectivities are of the format (numFace0Pts, id1, id2, id3, numFace1Pts, id1, id2, id3...). However, some cells like vtkPolyhedron require points plus a list of faces. To handle vtkPolyhedron, SetCells() support a special input cellConnectivities format (numCellFaces, numFace0Pts, id1, id2, id3, numFace1Pts,id1, id2, id3, ...) The functions use vtkPolyhedron::DecomposeAPolyhedronCell() to convert polyhedron cells into standard format.
A static method for converting a polyhedron vtkCellArray of format [nCellFaces, nFace0Pts, i, j, k, nFace1Pts, i, j, k, ...] into three components: (1) an integer indicating the number of faces (2) a standard vtkCellArray storing point ids [nCell0Pts, i, j, k] and (3) an vtkIdTypeArray storing face connectivity in format [nFace0Pts, i, j, k, nFace1Pts, i, j, k, ...] Note: input is assumed to contain only one polyhedron cell. Outputs (2) and (3) will be stacked at the end of the input cellArray and faces. The original data in the input will not be touched.
A static method for converting an input polyhedron cell stream of format [nFace0Pts, i, j, k, nFace1Pts, i, j, k, ...] into three components: (1) an integer indicating the number of faces (2) a standard vtkCellArray storing point ids [nCell0Pts, i, j, k] and (3) an vtkIdTypeArray storing face connectivity in format [nFace0Pts, i, j, k, nFace1Pts, i, j, k, ...] Note: input is assumed to contain only one polyhedron cell. Outputs (2) and (3) will be stacked at the end of the input cellArray and faces. The original data in the input will not be touched.
static void vtkUnstructuredGrid::ConvertFaceStreamPointIds |
( |
vtkIdList * |
faceStream, |
|
|
vtkIdType * |
idMap |
|
) |
| |
|
static |
Convert pid in a face stream into idMap[pid]. The face stream is of format [nCellFaces, nFace0Pts, i, j, k, nFace1Pts, i, j, k, ...]. The user is responsible to make sure all the Ids in faceStream do not exceed the range of idMap.