I’m trying to run VTK Examples/GUI/Python/ImplicitPlaneWidget.py and ran into a couple of issues.
- I downloaded & installed ParaView-5.8.0-MPI-Linux-Python3.7-64bit.tar.gz on Ubuntu 18.04.
- Then I ran pvpython ImplicitPlaneWidget.py, where pvpython is the binary that came with the above package.
AttributeError: module ‘vtkmodules.all’ has no attribute ‘vtkLODActor’
In fact I get this error on every script that uses vtkLODActor.
So I replaced vtkLODActor to vtkActor, then I can see a window with a mace in a blue background, but I don’t see any implicit plane selection widget. I don’t see any error message otherwise.
Am I doing something wrong?
Thanks in advance,
I’m guessing that
vtkRenderingLOD isn’t available. Can you
There’s no such module. I see the following vtkRender* in vtkmodules:
I recompiled Paraview from scratch, and it seems like VTKRenderingLOD is not included in the build. I used the following cmake setting. I’m not all that familiar with cmake. Can someone enlighten me what’s going on?
You can pass
-DVTK_MODULE_ENABLE_VTK_RenderingLOD=YES to force the module to build. @utkarshayachit Should the LOD module be tied to some ParaView build option?
As for vtkImplicitPlaneWidget, I missed that I needed to press “i” to activate the widget. Now I can see the widget.
So I guess at least for the examples, it’s safe to use vtkActor in place of vtkLODActor?
Ah, yeah probably. I don’t know what
vtkLODActor gets you on top of it, but not requiring a subclass if the base is sufficient for examples is probably better.