There have been some breaking changes in vtkThreshold
API that did not bring any value to VTK users. This is annoying, because discovering and fixing issues costs us time and there is zero benefit. It makes things even worse that the API change has just taken away convenience functions, which made vtkThreshold filter simpler and less error-prone to use.
Please consider the followings:
- Restore vtkThreshold’s
ThresholdByLower
,ThresholdByUpper
,ThresholdBetween
methods that were removed in this commit (or give a convincing explanation why they must go). - Avoid upsetting VTK users by changing the API just “to make things nicer”. If something is not nice enough then take a note of it as a comment in the code or in the issue tracker but leave the API unchanged, until you have to change it because it is required to fix or improve something around there. New classes or features may be excepted, because some API churn is understandable there, but methods that have been around for several years should stay the same unless there is very strong reason for change.