# Can VTK add multiple clipPlane to UnstructuredGrid dataset?

**URL:** https://discourse.vtk.org/t/can-vtk-add-multiple-clipplane-to-unstructuredgrid-dataset/8950
**Category:** Support
**Created:** [July 14, 2022, 7:27am UTC](https://discourse.vtk.org/t/can-vtk-add-multiple-clipplane-to-unstructuredgrid-dataset/8950 "2022-07-14T07:27:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Albers\_Steven](https://discourse.vtk.org/user_avatar/discourse.vtk.org/albers_steven/32/5242_2.png) [@Albers\_Steven](https://discourse.vtk.org/u/Albers_Steven)
#### Post date: [July 14, 2022, 7:27am UTC](https://discourse.vtk.org/t/can-vtk-add-multiple-clipplane-to-unstructuredgrid-dataset/8950/1 "2022-07-14T07:27:53Z")

</div>

Hi,

I try to clip an unstructured grid data with the example code of [ClipUnstructuredGridWithPlane2](https://kitware.github.io/vtk-examples/site/Python/UnstructuredGrid/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?

---

<div class="post-metadata">

### Author: ![andreasbuykx](https://discourse.vtk.org/user_avatar/discourse.vtk.org/andreasbuykx/32/8137_2.png) [@andreasbuykx](https://discourse.vtk.org/u/andreasbuykx)
#### Post date: [July 14, 2022, 8:44am UTC](https://discourse.vtk.org/t/can-vtk-add-multiple-clipplane-to-unstructuredgrid-dataset/8950/2 "2022-07-14T08:44:10Z")

</div>

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

---

<div class="post-metadata">

### Author: ![xxyyy159](https://discourse.vtk.org/user_avatar/discourse.vtk.org/xxyyy159/32/4528_2.png) [@xxyyy159](https://discourse.vtk.org/u/xxyyy159)
#### Post date: [September 15, 2022, 2:55am UTC](https://discourse.vtk.org/t/can-vtk-add-multiple-clipplane-to-unstructuredgrid-dataset/8950/3 "2022-09-15T02:55:02Z")

</div>

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