Can VTK add multiple clipPlane to UnstructuredGrid dataset?


I try to clip an unstructured grid data with the example code of ClipUnstructuredGridWithPlane2.

I works.

But the limit is that it can only add one clipPlane because you can only SetClipFunction once. So is there another way to add two plane to clip unstructured grid file?

VtkAbstractMapper has a function called AddClippingPlane can do some similar function.Can I use this?

You can add a second vtkClipDataSet instance that clips the output of the first with the second plane.

You can set vtkPlanes as implicitFunction,which can add multiple planes.