support for VTK 6 in BuildPosteriorModelExample
deprecated flag moved to beginning of function definition