Skip to content

Avoid repeatedly allocating and freeing memory in the vtkThreeSliceFilter

The vtkThreeSliceFilter used by Slice View allocates 1-2 arrays that are added to the input dataset. Allocating and freeing arrays every time a slider is moved adds considerable (and often unnecessary) overhead.

This merge request adds checks for both arrays and tries to reuse them.

Merge request reports