Skip to content

Multithreading for vtkDataSetAttributes::CopyData + new version

This commit multithreads CopyData calls using SMP. A new API is added for CopyData to handle the case where there is an explicit indexing in the source data set attributes and an implicit one in the destination.

Multithreading CopyData required a change to be made in vtkIdList, so one can set its internal array by giving a pointer without giving ownership to vtkIdList to this pointer. A new optional parameter save is added to vtkIdList::SetArray.

In addition, a new vtkAbstractArray::InserTuples is added to allow someone to fill an array starting at some index, and cherry-picking tuples from the source array.

This MR was a part of !8586 (merged)

Edited by Yohann Bearzi (Kitware)

Merge request reports