# Custom clip filter

**URL:** https://discourse.paraview.org/t/custom-clip-filter/2134
**Category:** ParaView Support
**Created:** [June 27, 2019, 2:02pm UTC](https://discourse.paraview.org/t/custom-clip-filter/2134 "2019-06-27T14:02:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Misha](https://discourse.paraview.org/user_avatar/discourse.paraview.org/misha/32/1732_2.png) [@Misha](https://discourse.paraview.org/u/Misha)
#### Post date: [June 27, 2019, 2:02pm UTC](https://discourse.paraview.org/t/custom-clip-filter/2134/1 "2019-06-27T14:02:17Z")

</div>

Hi,

On my project, I need to look inside an object. Right now, I’m using the clip filter in the following manner:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/0/006d0ced039d5db2faf750c4096433bd9180d9f8.jpeg)

 ![image](https://discourse.paraview.org/uploads/default/original/2X/e/e451860b2e1eec5361ef7dece510a08bf8fb51ab.jpeg)

But I need to create a different shape of a hole, like a pyramid or something similar.  
Is there a way to create a custom clip filter using a shape that I will provide (or perhaps ParaView is already working on different shapes of clip filters)?

---

<div class="post-metadata">

### Author: ![michal.wozniak](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/848f3c/32.png) [@michal.wozniak](https://discourse.paraview.org/u/michal.wozniak)
#### Post date: [June 27, 2019, 3:47pm UTC](https://discourse.paraview.org/t/custom-clip-filter/2134/2 "2019-06-27T15:47:16Z")

</div>

Hi,

Use the vtkClipDataSet, which clip any dataset with user-specified implicit function.

- Example using python : [ClipDataSetWithPolyData](https://lorensen.github.io/VTKExamples/site/Python/Meshes/ClipDataSetWithPolyData/)

---

<div class="post-metadata">

### Author: ![jvoor](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/71c47a/32.png) [@jvoor](https://discourse.paraview.org/u/jvoor)
#### Post date: [November 28, 2023, 11:18am UTC](https://discourse.paraview.org/t/custom-clip-filter/2134/3 "2023-11-28T11:18:32Z")

</div>

The above link is broken. I think it refers to this: [ClipDataSetWithPolyData](https://examples.vtk.org/site/Python/Meshes/ClipDataSetWithPolyData1/)
