On Tue, Mar 27, 2012 at 3:39 PM, agatte <agatakrason at gmail.com> wrote: > But I have to write it in *.vtk file . Why? Some sort of legacy system? You are missing () at the end of this call: geometryFilter->SetInput(reader->GetOutput); should be geometryFilter->SetInput(reader->GetOutput());