How to get the cell ids of mesh intersected with line using vtk ?

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 ?

Hi Muhammad,
I think vtkCellLocator can help you out.
Take a look at the Find Cell Intersections example.

Gerrick