How to create my own algorithmfilter in python?

Hello Team,

I am a beginner and blocked in my research. I kindly need help of anyone here.

I’m trying to convert CXX’s AlgorithmFilter sample code to Python. However, I don’t know how vtkNotUsed said in python, is there any alternative expression? The code in cxx is shown below.

int vtkTestAlgorithmFilter::RequestData(vtkInformation* vtkNotUsed(request),
vtkInformationVector** inputVector,
vtkInformationVector* outputVector)

Thanks and kind regards!

Dear xuqian,

the vtkNotUsed is simply a macro to avoid a compiler warning.

For resources about VTK Filter in Python, please refer to the corresponding blog:


Thanks for your reply,sir. It helps a lot.