you didn't define any points: //Generate the polyline for the spline. spline_points = vtkPoints::New(); spline_points->SetNumberOfPoints( static_cast<vtkIdType>(numberOfOutputPoints) ); you need to also do: spline_points->SetPoint(i,somethingX,somethingY,somethingZ); or, double somethingXYZ[3]; spline_points->SetPoint(i,somethingXYZ); Dean