Skip to content

vtkCellDataToPointData: Memory Improvements

vtkCellDataToPointData has 2 memory improvements:

  1. If links are attached to the input, they are used instead of rebuilding them at every execution.
  2. If links are not attached to the input, they are built locally with the minimum amount of memory. and then they are de-allocated.

Also vtkAbstractCellLinks subclasses now use the SetDataSet/BuildLinks pattern like vtkLocators instead of BuildLinks(dataset) which has been deprecated. Because of this change now we are able to store built time and check the dataset time to avoid unnecessary rebuilding of the links. Finally, vtkUnstructuredGrid::GetCellLinks() function has been deprecated, use GetLinks().

Edited by Spiros Tsalikis

Merge request reports