CellLinks
Introduction
vtkCellLinks maps each point to the cells that reference it.
Methods
addCellReference
Add a reference from a point to a cell.
| Argument | Type | Required | Description |
|---|---|---|---|
cellId | Number | Yes | Cell id. |
ptId | Number | Yes | Point id. |
allocate
Allocate storage for a number of links (typically the number of points).
| Argument | Type | Required | Description |
|---|---|---|---|
numLinks | Number | Yes | Number of point links to allocate. |
extSize=1000 | Number | No | Growth factor used for future extensions. |
allocateLinks
Allocate per-point cell-id arrays based on precomputed link counts.
| Argument | Type | Required | Description |
|---|---|---|---|
n | Number | Yes | Number of links (points). |
buildLinks
Build the link list array from the input dataset. The resulting structure maps each point id to the cells that reference it.
cells
Cell ids that use the point.
deepCopy
Deep-copy from another cell-links instance.
| Argument | Type | Required | Description |
|---|---|---|---|
src | Yes | Source object. |
deletePoint
Delete a point by removing all links to using cells.
| Argument | Type | Required | Description |
|---|---|---|---|
ptId | Number | Yes | Point id. |
extend
Method used to decorate a given object (publicAPI+model) with vtkCellLinks 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 | ICellLinksInitialValues | No | (default: {}) |
getCells
Return the list of cell ids that use the point.
| Argument | Type | Required | Description |
|---|---|---|---|
ptId | Number | Yes | Point id. |
getLink
Get the full link structure for a point id.
| Argument | Type | Required | Description |
|---|---|---|---|
ptId | Number | Yes | Point id. |
getNcells
Get the number of cells using the point.
| Argument | Type | Required | Description |
|---|---|---|---|
ptId | Number | Yes | Point id. |
incrementLinkCount
Increment the count of cells using a point.
| Argument | Type | Required | Description |
|---|---|---|---|
ptId | Number | Yes | Point id. |
initialize
Clear out previously allocated link structures.
insertCellReference
Insert a cell id into a point's cell-id list at a specific position.
| Argument | Type | Required | Description |
|---|---|---|---|
ptId | Number | Yes | Point id. |
pos | Number | Yes | Position inside the point's list. |
cellId | Number | Yes | Cell id. |
insertNextCellReference
Append a cell id to the point's cell-id list.
| Argument | Type | Required | Description |
|---|---|---|---|
ptId | Number | Yes | Point id. |
cellId | Number | Yes | Cell id. |
insertNextPoint
Insert a new point entry into the links structure.
| Argument | Type | Required | Description |
|---|---|---|---|
numLinks | Number | Yes | Initial size of the point's cell-id list. |
ncells
Number of cells using the point.
newInstance
Method used to create a new instance of vtkCellLinks.
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | ICellLinksInitialValues | No | for pre-setting some of its content |
removeCellReference
Remove the reference from a point to a cell.
| Argument | Type | Required | Description |
|---|---|---|---|
cellId | Number | Yes | Cell id. |
ptId | Number | Yes | Point id. |
reset
Reset to an empty state without freeing memory.
resizeCellList
Resize a point's cell-id list.
| Argument | Type | Required | Description |
|---|---|---|---|
ptId | Number | Yes | Point id. |
size | Number | Yes | New list size. |
squeeze
Reclaim unused memory.