I have a code for mesh generated myself and I have a defined line too. I want to use vtk to extract all the cells which are intersected with line. How do I access my data in vtk and what functions should I use to find intersection condition ?
I think vtkCellLocator can help you out.
Take a look at the Find Cell Intersections example.