I have some questions about 3D image cutting. I draw a polygon through the lasso tool and generate a polydata, that is, a polyprism, according to the original volume data in the vertical direction of the screen, as shown in the figure. Now my idea is to calculate the nearest and furthest point from the original volume data to the screen to set the height of the polyprism Volume data field intersection, after use vtkImageStencilToImage class and vtkPolyDataToImageStencil class performing data conversion.
I’d like to know the feasibility of this method. Maybe there are other ways I don’t know, and I’d like to get some advice I will be very grateful.