cannot find ExtractEdges

Hello All -first time poster here!

I am using some old code, new to me, which uses vtk, and when I run it I get this error:

ImportError: cannot import name ‘vtkExtractEdges’ from ‘vtkmodules.vtkFiltersExtraction’ (/home/mike.jackson/.local/lib/python3.10/site-packages/vtkmodules/vtkFiltersExtraction.cpython-310-x86_64-linux-gnu.so)

What I think is happening is that it is trying to get and “ExtractEdges” function but cannot find it in the module. I think that the code I have was probably written using an older version where that function was in the module it is looking in but it has either (a) changed name (b) moved somewhere else or (c) updated perhaps being incorporated into a new function?

So can anyone tell me if the “ExtractEdges” function was in an older version of VTK? (if so, which one and can i just pip install that?) or how I can get round this problem?

many thanks, Mike!

Don’t ask me why, vtkExtractEdges is in VTK/Filters/Core/vtkExtractEdges.h, not Filters/Extraction/