adapting for VTK 6 (VTK < 6 should still work, everything flagged)