vtkContour3DLinearGrid: interpolated output point data arrays do not match the number of points when computing more than one contour
Attached is a Python script that shows the problem.
TestContour3DLinearGridInterpolateAttributes.py
Lines 1450-1460 look like possible culprits: https://gitlab.kitware.com/vtk/vtk/blob/master/Filters/Core/vtkContour3DLinearGrid.cxx#L1450
Note that if the totalPts
value is greater than 0, which occurs the second and later contour values, the local ArrayList
variable is Realloc
'ed before being allocated, and no arrays are set on it. When interpolation is supposed to happen, there are no arrays in the list, interpolation doesn't occur, and points are not added to the output arrays.
/cc @will.schroeder