How to clip polydata along ribbon?

Hi Paulo,

I just wanted to let you know that I solved my problem. Here’s my workflow:

  1. Extract points to clip along (I’ll call it crossline).
  2. Extract points from largest edge (i.e., perimeter of mask).
  3. Determine nearest neighbours from crossline to perimeter.
  4. Create closed loop bound by crossline and perimeter and convert to polydata.
  5. Use vtkSelectPolyData then vtkClipPolyData to clip mask along loop.

The image shows the clipped mask in green, the perimiter in white, and the closed loop for clipping in red.
image

Thanks for discussing and helping me improve my understanding!

Positively,
Matthew

1 Like