Slow update when using vtkGlyph3D in Activiz 9.1

Hi
I just moved from Activiz 6.3 to 9.1 and found that visualizing relatively large dataset with vtkGlyph3D is very very slow. I have 7746 points and it takes couple minutes to update glyphs.
In version 6.3, update and rendering is almost instant. I checked Paraview and works seamlessly.
Not sure if I’m missing some other settings, but this should be very simple. Attached is the polydata file I’m using for testing
Please advise.

Thanks
Marinko

YXXJMDRJFZ.vtp (1.2 MB)

  vtkXMLPolyDataReader wr = new vtkXMLPolyDataReader();
  wr.SetFileName(filename);
  wr.Update();
  vtkPolyData PD = new vtkPolyData();
  PD = wr.GetOutput();
  wr.Dispose();


  vtkCubeSource cubeSource = new vtkCubeSource();
  cubeSource.SetXLength(3);
  cubeSource.SetYLength(3);
  cubeSource.SetZLength(3);

  sampleGlyph3D.SetInputData(Grid);
  sampleGlyph3D.SetSourceConnection(cubeSource.GetOutputPort());
  sampleGlyph3D.ScalingOff();
  sampleGlyph3D.Update();

Why are you copying the poly data to a new object? Just hold onto the output.
vtkPolyData PD = wr.GetOutput();

I confirm it takes a minute with Activiz 9.1.2022.222 on my side, and 300ms with the nightly build of Activiz that is based on VTK-master. Both versions are built with STDThread as SMP backend.

So this is very likely to be fixed in the next Activiz version that should be release soon.

So this is a VTK regression rather than an Activiz problem?

There was a vtkGlyph3D performance regression fixed, I believe, by https://gitlab.kitware.com/vtk/vtk/-/merge_requests/8999.

Thanks @cory.quammen, this explains why other filters such as vtkExtractSelection are impacted too.

Installed 9.2 and issue with 3D glyphs has been resolved.
Thanks Lucas
Found another problem that I’ll explain in next post