About 3D image cutting

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.

Is this related to the “Web” category of VTK? With what toolkit do you want to perform these operations ? VTK C++ or VTK.js ?

I am using vtk C++ to do this, and later I plan to rewrite it in python and eventually work on the web via trame.

—Original—

Then you will have better luck with your question if you post it in a different discourse category :smiley:

You’re right. I just noticed the topic category.