# A question about solid clipper

**URL:** https://discourse.vtk.org/t/a-question-about-solid-clipper/7367
**Category:** Support
**Tags:** jobs
**Created:** [December 8, 2021, 10:03am UTC](https://discourse.vtk.org/t/a-question-about-solid-clipper/7367 "2021-12-08T10:03:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![KeyboardMan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/keyboardman/32/968_2.png) [@KeyboardMan](https://discourse.vtk.org/u/KeyboardMan)
#### Post date: [December 8, 2021, 10:03am UTC](https://discourse.vtk.org/t/a-question-about-solid-clipper/7367/1 "2021-12-08T10:03:55Z")

</div>

How is “solid” defined，I tried to use vtkTableBasedClipDataSet to cut vtkCylinderSource, and the result seemed to be really “solid”.  
But when I tried other data types, I didn’t get the desired effect.This is a vtkUnstructuredGrid output data, and then use vtkUnstructuredGridGeometryFilter for processing.  
The result is like this.

 ![nosolid](https://discourse.vtk.org/uploads/default/original/2X/f/fcb8362ec71c6c62b790b51c408dc83230ba9f57.png)

If you do not use vtkUnstructuredGridGeometryFilter to process the data, then the result is like this

 ![solid](https://discourse.vtk.org/uploads/default/original/2X/6/6934d9b61bcb9a2e2eb63c4765052555a733c989.png)  
Obviously the second one is the result I want.  
But I don’t understand why the first one is an empty shell. Is it because vtkUnstructuredGridGeometryFilterdestroys its characteristics as a “solid”?

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [December 8, 2021, 4:12pm UTC](https://discourse.vtk.org/t/a-question-about-solid-clipper/7367/2 "2021-12-08T16:12:46Z")

</div>

vtkUnstructuredGrid do support 3D cells which will be properly transformed with the vtkUnstructuredGridGeometryFilter for rendering.

My guess is that your original data is described using 2D cells (triangles) (like a STL file) and therefore when you cut it, you see the paper thin walls not a filled inside.

---

<div class="post-metadata">

### Author: ![KeyboardMan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/keyboardman/32/968_2.png) [@KeyboardMan](https://discourse.vtk.org/u/KeyboardMan)
#### Post date: [December 9, 2021, 1:59am UTC](https://discourse.vtk.org/t/a-question-about-solid-clipper/7367/3 "2021-12-09T01:59:31Z")

</div>

cell type is VTK\_VOXEL,I think it should not be the reason for this type of cell.

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [December 9, 2021, 4:38pm UTC](https://discourse.vtk.org/t/a-question-about-solid-clipper/7367/4 "2021-12-09T16:38:30Z")

</div>

Were you saying that you are clipping the output of vtkUnstructuredGridGeometryFilter ?

If that was the case, then yes, the result make sense as you should have clipped the vtkUnstructuredGrid itself to keep the “solid” cells.

I’m not sure I get your comment on VTK\_VOXEL. If it does not apply to your mesh, just don’t use that one…
