Actually I didn't put the whole code. But polyDataInput is made inside the function and stores the data read from a file. -- View this message in context: http://vtk.1045678.n5.nabble.com/Passing-vtkPolyData-to-function-tp5713423p5713426.html Sent from the VTK - Users mailing list archive at Nabble.com.