Enabling/disabling filters in a pipeline

I have an application (Geant4) where I would like to give users the ability to enable or disable filters in a pipeline. For example

polydata → clean → triangle → normal → feature → …

Is there a simple way to disable the action of one of the filters? I have looked through as carefully as I can the API/documentation for vtkPolyDataAlgorithm, vtkAlogrithm and did not find anything.

If this is something a user has to implement, does anyone have examples where this is done elegantly?

Any help would be appreciated, best
Stewart

There is not a way to disable a filter as far as I know. Instead, you’ll have to bypass a filter you don’t want to use by changing inputs/outputs, i.e., chaining them together differently.

1 Like