CellArray
Introduction
vtkCellArray stores dataset topologies as an explicit connectivity table listing the point ids that make up each cell.
See Also
Methods
extend
Method used to decorate a given object (publicAPI+model) with vtkCellArray characteristics.
| Argument | Type | Required | Description |
|---|---|---|---|
publicAPI | Yes | object on which methods will be bounds (public) | |
model | Yes | object on which data structure will be bounds (protected) | |
initialValues | ICellArrayInitialValues | No | (default: {}) |
extractCellSizes
| Argument | Type | Required | Description |
|---|---|---|---|
cellArray | Yes |
getCell
Returns the point indices at the given location as a subarray.
| Argument | Type | Required | Description |
|---|---|---|---|
loc | Yes |
getCellSizes
Get the sizes of the cells in this array.
| Argument | Type | Required | Description |
|---|---|---|---|
recompute | Boolean | No | Recompute the cell sizes. |
getMaxCellSize
Get the maximum cell size.
getNumberOfCells
| Argument | Type | Required | Description |
|---|---|---|---|
cellArray | Yes |
getNumberOfCells
Get the number of cells in the array.
| Argument | Type | Required | Description |
|---|---|---|---|
recompute | Boolean | No | Recompute the number of cells. |
insertNextCell
Insert a cell to this array in the next available slot. This may re-allocate a new typed array if the current one is not large enough. If the final size of the array is known up-front, it is more efficient to call allocate() before calling insertNextCell() multiple times.
| Argument | Type | Required | Description |
|---|---|---|---|
cellPointIds | Array[Number] | Yes | The list of point ids (NOT prefixed with the number of points) |
Returns
| Type | Description |
|---|---|
| Number | Idx of where the cell was inserted |
newInstance
Method used to create a new instance of vtkCellArray
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | ICellArrayInitialValues | No | for pre-setting some of its content |
setData
Set the data of this array.
| Argument | Type | Required | Description |
|---|---|---|---|
typedArray | Array[Number] or TypedArray | Yes | The Array value. |