Skip to content

Use new style to insert cells in silhouette filter

  • use InsertNextCell instead of ImportLegacyFormat to insert line segments into the cell array.
  • also destroy and reconstruct the vtkCellArray instance so that it's MTime reflects that the lines are different than the last time RequestData executed.

Cc: @sebastien.jourdain it might seem unrelated, but this fixes the silhouette example in https://github.com/Kitware/trame-vtklocal/issues/3. What really went down was that the cell array's MTime did not increment even after new line segments were added by vtkPolyDataSilhouette. As a result, the client did not ask for new cell array's state.

Merge request reports