# Clip closed surface filter over multiple open structures

**URL:** https://discourse.paraview.org/t/clip-closed-surface-filter-over-multiple-open-structures/12969
**Category:** ParaView Support
**Created:** [October 2, 2023, 2:39am UTC](https://discourse.paraview.org/t/clip-closed-surface-filter-over-multiple-open-structures/12969 "2023-10-02T02:39:08Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![fashing](https://discourse.paraview.org/user_avatar/discourse.paraview.org/fashing/32/12357_2.png) [@fashing](https://discourse.paraview.org/u/fashing)
#### Post date: [October 2, 2023, 2:39am UTC](https://discourse.paraview.org/t/clip-closed-surface-filter-over-multiple-open-structures/12969/1 "2023-10-02T02:39:08Z")

</div>

Hi Paraview,  
I tested `clip closed filter` on a `superquadric` (donut) and I found something weird.  
With default setting (Origin: 0, 0, 0; Normal: 1, 0, 0), one of the holes is not completely closed.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/0/0bda0f661329ac2d26c5d2b9721e97d3b6ce5539.png)  
However, as I modify the parameters, sometimes it works and sometimes it doesn’t.  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/8/8eb85f38788826c4cfc9e93fe1474db341cadf84.png) ![image](https://discourse.paraview.org/uploads/default/original/2X/f/f66e2fceb97552ccecef24157f66f812159cff1b.png)

I can open a report if someone confirms this issue. Thank you!

[Update]  
There’s another related issue, the quality difference between `clip filter` (left) and `clip closed filter` (right) is huge. Is this normal or can it be avoided with some additional setting?

 ![image](https://discourse.paraview.org/uploads/default/original/2X/1/17a134d1958389e896c708857daed922a0d2bfe5.png)

---

<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: [October 2, 2023, 6:02am UTC](https://discourse.paraview.org/t/clip-closed-surface-filter-over-multiple-open-structures/12969/2 "2023-10-02T06:02:05Z")

</div>

> I can open a report if someone confirms this issue. Thank you!

Please do, looks like a bug

> the quality difference

Missing normals, can be recomputed with GenerateSurfaceNormals, but this should not be needed, no reason to remove the normals.

---

<div class="post-metadata">

### Author: ![fashing](https://discourse.paraview.org/user_avatar/discourse.paraview.org/fashing/32/12357_2.png) [@fashing](https://discourse.paraview.org/u/fashing)
#### Post date: [October 2, 2023, 6:35am UTC](https://discourse.paraview.org/t/clip-closed-surface-filter-over-multiple-open-structures/12969/3 "2023-10-02T06:35:34Z")

</div>

The issue has been reported.  
[Error in clip closed surface filter on multiple open structures (#22327) · Issues · ParaView / ParaView · GitLab (kitware.com)](https://gitlab.kitware.com/paraview/paraview/-/issues/22327)

> no reason to remove the normals.

I didn’t remove the normals, maybe this is another issue of the filter.  
This quality drop doesn’t happen on my other testing though (only on `superquadric`).

---

<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: [October 2, 2023, 7:14am UTC](https://discourse.paraview.org/t/clip-closed-surface-filter-over-multiple-open-structures/12969/4 "2023-10-02T07:14:17Z")

</div>

> [@fashing](#):
>
> I didn’t remove the normals, maybe this is another issue of the filter.

Not reason for \*\*the filter \*\* to remove the normals, looks like a bug.

> This quality drop doesn’t happen on my other testing though

In which situtation does it not appear ?

---

<div class="post-metadata">

### Author: ![fashing](https://discourse.paraview.org/user_avatar/discourse.paraview.org/fashing/32/12357_2.png) [@fashing](https://discourse.paraview.org/u/fashing)
#### Post date: [October 2, 2023, 9:02am UTC](https://discourse.paraview.org/t/clip-closed-surface-filter-over-multiple-open-structures/12969/5 "2023-10-02T09:02:13Z")

</div>

In my previous post, the quality did not drop.  
[Clip closed surface filter over contour filter - ParaView Support - ParaView](https://discourse.paraview.org/t/clip-closed-surface-filter-over-contour-filter/12901)

I think this information suggests `clip close surface` filter use `clip` filter for contour output. 🤔

Should I open another issue about the normal removal, or append this in the previous issue?

---

<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: [October 3, 2023, 6:28am UTC](https://discourse.paraview.org/t/clip-closed-surface-filter-over-multiple-open-structures/12969/6 "2023-10-03T06:28:59Z")

</div>

Normals do not matter for a box.

Clip closed surface actually remove all arrays as it would need to compute them for new cells. That’s possible but more of a missing feature than a bug.

---

<div class="post-metadata">

### Author: ![fashing](https://discourse.paraview.org/user_avatar/discourse.paraview.org/fashing/32/12357_2.png) [@fashing](https://discourse.paraview.org/u/fashing)
#### Post date: [October 3, 2023, 6:45am UTC](https://discourse.paraview.org/t/clip-closed-surface-filter-over-multiple-open-structures/12969/7 "2023-10-03T06:45:29Z")

</div>

Actually, it’s not a regular cuboid, but a round box from a contour filter.  
And I was wrong, the image quality also drops in this case.

(vdb → contour filter)

 ![image](https://discourse.paraview.org/uploads/default/original/2X/c/c7456e8570f8af9a157545b086150df5976a8711.png)  
(vdb → contour filter → clip closed surface)  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/5/596c1dc20239508e7cb086dba39186e353221c0b.png)
