vtkThreshold get extremes

I was wandering if there was a simple way to use ThresholdBetween for vtkThreshold to get the part of the object thesholded away (like GenerateClippedOutputOn for vtkClipPolyData).

This could be achieved with a combination of ThresholdByUpper and ThresholdByLower but if there is a simpler option I would prefer it since I need to filter different scalars along a chain and it becomes messy pretty quickly (e.g. Red colour values → Blue colour values → Green colour values).


You can try setting the limits with ThreholdBetween and check the Invert option to select everything outside the range .

Ah yes thank you, I must have missed It. And for vtkThresholdPoints? It doesn’t seem to have any invert option for some reason.

Thanks again!