# ParaView Cylinder Clip Filter - Controlling Cylinder Position and Height

**URL:** https://discourse.paraview.org/t/paraview-cylinder-clip-filter-controlling-cylinder-position-and-height/13154
**Category:** ParaView Support
**Created:** [November 1, 2023, 3:00pm UTC](https://discourse.paraview.org/t/paraview-cylinder-clip-filter-controlling-cylinder-position-and-height/13154 "2023-11-01T15:00:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Renard](https://discourse.paraview.org/user_avatar/discourse.paraview.org/renard/32/5701_2.png) [@Renard](https://discourse.paraview.org/u/Renard)
#### Post date: [November 1, 2023, 3:00pm UTC](https://discourse.paraview.org/t/paraview-cylinder-clip-filter-controlling-cylinder-position-and-height/13154/1 "2023-11-01T15:00:51Z")

</div>

Hi,

I’m currently working with the Cylinder Clip filter in ParaView, and I’m encountering an issue with the cylinder’s position and height. I’m hoping to create a cylindrical hole in my object that extends only up to the third layer, but the current result has the cylinder passing through all layers, creating a hole that extends through the entire object.

To achieve my desired result, I need to specify the following parameters for the cylinder:

- Center of the bottom face: [14, 17, 3]
- Radius: 14
- Axis: [0, 0, 1]
- Height: 2 (or higher)

However, I’m not sure how to set these parameters using the Cylinder Clip filter in ParaView. Is there a way to control the position of the cylinder’s bottom face and its height within the filter?

Any guidance or suggestions on how to achieve this specific configuration would be greatly appreciated.  
VTU file is attached to the post. Thank you in advance for your assistance.

VTU file: [outfile\_ASD.vtu](https://discourse.paraview.org/uploads/short-url/bDuPDhA29jTx5Ob3v2FNZrsnNAt.vtu) (1.1 MB)

 ![A_Paraview_Cylinder_filter](https://discourse.paraview.org/uploads/default/original/2X/5/50749e3bedb1787515d926453986cc62a78508f1.png)  
 ![Screenshot from 2023-11-01 15-51-24](https://discourse.paraview.org/uploads/default/original/2X/9/90e2d29d87b3f3f499b98b3c384132a5219dbaa7.png)

---

<div class="post-metadata">

### Author: ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)
#### Post date: [November 1, 2023, 6:09pm UTC](https://discourse.paraview.org/t/paraview-cylinder-clip-filter-controlling-cylinder-position-and-height/13154/2 "2023-11-01T18:09:33Z")

</div>

As a short answer, you cannot do this. The cylinder for `Clip` is infinite. You cannot specify a fixed-length height.

The straightforward way to clip a limited-depth cylinder is to use a combination of cylinder and plane clips. Here is an example of using a `Clip` to get the data below the Z=3 plane, another to get the data above the Z=3 plane, and a third `Clip` that removes the cylinder from the upper clipped data.

[clip-finite-cylinder.pvsm](https://discourse.paraview.org/uploads/short-url/9TDGFW6jSBPtzDvlQlDLaKtDNFu.pvsm) (706.7 KB)

 ![Screen Shot 2023-11-01 at 1.59.37 PM](https://discourse.paraview.org/uploads/default/original/2X/1/1d348ebac6ddca9d6798618ab9e4dcbf47743605.jpeg)

The disadvantage of this approach is that the cells at the Z=3 plane all get split into 2.

There is some limited support to clip on arbitrary surfaces: [Slice/Clip with a surface](https://discourse.paraview.org/t/slice-clip-with-a-surface/9436). You could potentially create a `Cylinder` source and use that for the clip. But the results do not always look great. In particular, I would expect that you would not see a nice right-angled clip at the base of the cylindrical hole.

---

<div class="post-metadata">

### Author: ![Renard](https://discourse.paraview.org/user_avatar/discourse.paraview.org/renard/32/5701_2.png) [@Renard](https://discourse.paraview.org/u/Renard)
#### Post date: [November 1, 2023, 6:18pm UTC](https://discourse.paraview.org/t/paraview-cylinder-clip-filter-controlling-cylinder-position-and-height/13154/3 "2023-11-01T18:18:49Z")

</div>

Thanks, are you a PView dev? Could you include a “finite” cylinder cllip in the next release? I had created a Python script that can extract the cells inside a defined finite cylinder from VTU file, I think it will be easy for you guys to implement it.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [November 2, 2023, 7:23am UTC](https://discourse.paraview.org/t/paraview-cylinder-clip-filter-controlling-cylinder-position-and-height/13154/4 "2023-11-02T07:23:58Z")

</div>

> [@How are features and bug fixes incorporated into ParaView?](https://discourse.paraview.org/t/how-are-features-and-bug-fixes-incorporated-into-paraview/4735):
>
> As with all open source projects, adding features and fixing bugs takes developer effort. That effort may originate from volunteer community contributors, or through paid professional services offered by companies like [Kitware](https://www.kitware.com). Features and bug fixes are prioritized by the needs of contributing community members and by professional services customers. Note that contributions are vetted by a rigorous community review and testing process; therefore it is recommended that significant changes are d…

Feel free to reachout 🙂
