BF: fixed compatibility issues between vtk 5 and 6
RF: removed unused variable
Merge pull request #503 from Garyfallidis/fix_rec_vtk6

Fixed compatibility issues between vtk 5 and 6