# Clipping breaks the Hexahedron adjacent to the Polyhedron

**URL:** https://discourse.vtk.org/t/clipping-breaks-the-hexahedron-adjacent-to-the-polyhedron/12164
**Category:** Development
**Tags:** code
**Created:** [August 18, 2023, 4:51am UTC](https://discourse.vtk.org/t/clipping-breaks-the-hexahedron-adjacent-to-the-polyhedron/12164 "2023-08-18T04:51:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.vtk.org/u/Kenichiro-Yoshimi)
#### Post date: [August 18, 2023, 4:51am UTC](https://discourse.vtk.org/t/clipping-breaks-the-hexahedron-adjacent-to-the-polyhedron/12164/1 "2023-08-18T04:51:28Z")

</div>

Hi,

I am currently trying to create a cut-cell program to cut cartesian grids with watertight PolyData. Once this is completed, unlike vtkDelaunay3D, volumes can be created for concave PolyData. (The cut-cell program is the Sutherland-Hodgman clip algorithm from SPARTA ([https://sparta.github.io/](https://sparta.github.io/)) rewritten in the style of the VTK library.)

Unfortunately, clipping the resulting mesh of the cut-cell with ParaView’s Clip filter breaks the Hexahedron adjacent to the Polyhedron (as shown in the figure below). I can’t figure out what is causing this, the Polyhedron and Hexahedron definitions seem to be correct. Is it a problem with the vtkTableBasedClipDataSet used by the Clip filter? Or is it another reason?

 ![bronken_hexa](https://discourse.vtk.org/uploads/default/original/2X/4/43e14996be26a00f337f5a9fbbdfa0fe15699759.png)

The program and sample data are below.  
[CutCell3D.7z](https://discourse.vtk.org/uploads/short-url/yFuYPHObcS9OnAPSctALBWywn36.7z) (94.4 KB)

---

<div class="post-metadata">

### Author: ![spyridon97](https://discourse.vtk.org/user_avatar/discourse.vtk.org/spyridon97/32/7069_2.png) [@spyridon97](https://discourse.vtk.org/u/spyridon97)
#### Post date: [August 18, 2023, 7:21pm UTC](https://discourse.vtk.org/t/clipping-breaks-the-hexahedron-adjacent-to-the-polyhedron/12164/2 "2023-08-18T19:21:07Z")

</div>

@will.schroeder This is similar to the issue that i have tagged you in the past. Do you want me to take a look at it, or do you wanna go for it?

---

<div class="post-metadata">

### Author: ![will.schroeder](https://discourse.vtk.org/user_avatar/discourse.vtk.org/will.schroeder/32/233_2.png) [@will.schroeder](https://discourse.vtk.org/u/will.schroeder)
#### Post date: [August 18, 2023, 7:22pm UTC](https://discourse.vtk.org/t/clipping-breaks-the-hexahedron-adjacent-to-the-polyhedron/12164/3 "2023-08-18T19:22:11Z")

</div>

I’ll take a look next week when I return from vacation.

---

<div class="post-metadata">

### Author: ![bheld](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/8491ac/32.png) [@bheld](https://discourse.vtk.org/u/bheld)
#### Post date: [August 22, 2024, 4:45pm UTC](https://discourse.vtk.org/t/clipping-breaks-the-hexahedron-adjacent-to-the-polyhedron/12164/4 "2024-08-22T16:45:04Z")

</div>

Hi Will - was or will this be fixed? Thanks.

---

<div class="post-metadata">

### Author: ![spyridon97](https://discourse.vtk.org/user_avatar/discourse.vtk.org/spyridon97/32/7069_2.png) [@spyridon97](https://discourse.vtk.org/u/spyridon97)
#### Post date: [August 24, 2024, 4:15pm UTC](https://discourse.vtk.org/t/clipping-breaks-the-hexahedron-adjacent-to-the-polyhedron/12164/5 "2024-08-24T16:15:25Z")

</div>

With the latest paraview 5.13 that includes [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/10520](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/10520)

 ![image](https://discourse.vtk.org/uploads/default/original/2X/6/67563494bf0025600e19894634a8ce653adf10e6.png)

Does that solve your issue?
