How to extract the points from vtkPoints with vtkLineWidget2?

Hi all :slight_smile:

I am using vtkLineWidget2 attached to vtkRenderWindow.

Is it possible to extract the points near(or along the vtkLineWidget2) the vtkLineWidget2?

I would like to render the profile to the vtkChartXY by using the extract points.

Now, I have a problem with the algorithm that extracts the points, so it doesn’t work well.

Could you please advise me?

Thank you !

You can sample an image along a line using vtkProbeFilter.