Thank you so much Aashish, your fix works perfectly. I also tested it after updating VTK to 7.0 version, I had no problems. Thank you again, I will thank you also in the acknowledgements section in my thesis! I'm glad I could help you to find this problem in VTK Best reguards