ShallowCopy inconsistency with GlobalIds
In the vtkProgrammableFilter
, we initialize the output with a ShallowCopy
of the input (when CopyArrays
is true
).
For vtkCompositeDataSet
, we have a special code path where we use an iterator and call the ShallowCopy
on each vtkDataObject
we find. For other class, we call ShallowCopy
directly.
Question: why is this iteration needed ? Is it not done in the Composite implementation ?
Also, in the linked version of the code, due to a missing else
, composite input was also ShallowCopied to output after the iteration, leading to a different result in copied arrays: whereas the "iterator" version copy all arrays, some are missing in the second (Global Ids ?). Any idea why ?
tested with disk_out_ref (vtkPartionedDataSetCollection), through ParaView Python Calculator.