# The Clip result is not right

**URL:** https://discourse.paraview.org/t/the-clip-result-is-not-right/6881
**Category:** Development
**Created:** [April 6, 2021, 9:36am UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881 "2021-04-06T09:36:28Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![gangyi\_rao](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gangyi_rao/32/6038_2.png) [@gangyi\_rao](https://discourse.paraview.org/u/gangyi_rao)
#### Post date: [April 6, 2021, 9:36am UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881/1 "2021-04-06T09:36:28Z")

</div>

Hi Experts,  
When I display the clip use paraview. I found that the clip field result has big difference whith the origin field result. Is it the color interpolation error?  
I upload the clip image and result image ![clip](https://discourse.paraview.org/uploads/default/original/2X/e/ee43d37e64ed06d341fe4e91958ee08fa44af898.png) ![result](https://discourse.paraview.org/uploads/default/original/2X/7/7695e9d3a8c2bac91765d57449bdbb20fbe9654d.png)  
This is the vtu file:[333.vtu](https://discourse.paraview.org/uploads/short-url/8xxKJQAanzAsAv243JWZZghwIC9.vtu) (938.9 KB)  
I find that the tetra has this 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: [April 6, 2021, 9:47am UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881/2 "2021-04-06T09:47:02Z")

</div>

Im able to clip your data without issue. What is the problem here ?

---

<div class="post-metadata">

### Author: ![gangyi\_rao](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gangyi_rao/32/6038_2.png) [@gangyi\_rao](https://discourse.paraview.org/u/gangyi_rao)
#### Post date: [April 6, 2021, 10:56am UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881/3 "2021-04-06T10:56:29Z")

</div>

Hi Mwestphal,  
Does the field color display right? I mean the clip is very close to the outer surface. But the field color has a big differenece.The clip surface has yellow and many kinds of color. But the outer surface is just blue. I mean the color should be similar to the outer surface.  
Thanks

---

<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: [April 6, 2021, 10:58am UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881/4 "2021-04-06T10:58:49Z")

</div>

Which version of ParaView are you using ?

---

<div class="post-metadata">

### Author: ![gangyi\_rao](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gangyi_rao/32/6038_2.png) [@gangyi\_rao](https://discourse.paraview.org/u/gangyi_rao)
#### Post date: [April 6, 2021, 11:00am UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881/5 "2021-04-06T11:00:16Z")

</div>

Hi mwestphal,  
The paraview 5.4.1 and paraview 5.8 also have this issue.  
Thanks

---

<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: [April 6, 2021, 11:03am UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881/6 "2021-04-06T11:03:04Z")

</div>

No issues here:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/a/a638a8cbbbcc5d59d7f999336c963d06f4974c46.png)

---

<div class="post-metadata">

### Author: ![gangyi\_rao](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gangyi_rao/32/6038_2.png) [@gangyi\_rao](https://discourse.paraview.org/u/gangyi_rao)
#### Post date: [April 6, 2021, 11:06am UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881/7 "2021-04-06T11:06:45Z")

</div>

Hi Mwestphal,  
You can use log scale for the colorbar. And I have a question? Why the color is not smooth? I think the color should be same the origin field result.

---

<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: [April 6, 2021, 11:09am UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881/8 "2021-04-06T11:09:57Z")

</div>

With log, still correct.

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

> Why the color is not smooth? I think the color should be same the origin field result.

Not sure what you mean.

---

<div class="post-metadata">

### Author: ![gangyi\_rao](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gangyi_rao/32/6038_2.png) [@gangyi\_rao](https://discourse.paraview.org/u/gangyi_rao)
#### Post date: [April 6, 2021, 11:12am UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881/9 "2021-04-06T11:12:52Z")

</div>

I mean the color should be smooth. We can see that the image has many sharp outline.

---

<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: [April 6, 2021, 11:14am UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881/10 "2021-04-06T11:14:16Z")

</div>

This is a smooth as your mesh topology is:

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

---

<div class="post-metadata">

### Author: ![gangyi\_rao](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gangyi_rao/32/6038_2.png) [@gangyi\_rao](https://discourse.paraview.org/u/gangyi_rao)
#### Post date: [April 6, 2021, 11:20am UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881/11 "2021-04-06T11:20:12Z")

</div>

OK, let me think this question. The clip result is not my ideal result. Thanks

---

<div class="post-metadata">

### Author: ![gangyi\_rao](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gangyi_rao/32/6038_2.png) [@gangyi\_rao](https://discourse.paraview.org/u/gangyi_rao)
#### Post date: [April 6, 2021, 11:28am UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881/12 "2021-04-06T11:28:09Z")

</div>

Hi mwestphal.  
I add a slice for this file. The slice is very close the outer surface. You can see the difference.! origin:[result1|547x500](https://discourse.paraview.org/uploads/short-url/1HZQEBALJcYb5iomf1j1tYg2jKI.png)  
slice: [slice1|582x500](https://discourse.paraview.org/uploads/short-url/sjz2bsZPvcigDY6QTKpEJT0ej83.png)  
Maybe the slice display the cell field value.

---

<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: [April 6, 2021, 12:05pm UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881/13 "2021-04-06T12:05:48Z")

</div>

The dataset you shared do not have any cell data associated with it.

---

<div class="post-metadata">

### Author: ![gangyi\_rao](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gangyi_rao/32/6038_2.png) [@gangyi\_rao](https://discourse.paraview.org/u/gangyi_rao)
#### Post date: [April 6, 2021, 12:09pm UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881/14 "2021-04-06T12:09:15Z")

</div>

Yeah, I konw. There are only point data in this file. I mean that display of slice is different with orgin file.

---

<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: [April 6, 2021, 12:10pm UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881/15 "2021-04-06T12:10:49Z")

</div>

your problem is unclear please state the following:

1. What are you doing with paraview, with clear steps to reproduce or a state file
2. What is the current incorrect results with a screenshot
3. What is the expected correct result, ideally with a screenshot

---

<div class="post-metadata">

### Author: ![gangyi\_rao](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gangyi_rao/32/6038_2.png) [@gangyi\_rao](https://discourse.paraview.org/u/gangyi_rao)
#### Post date: [April 6, 2021, 12:14pm UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881/16 "2021-04-06T12:14:27Z")

</div>

OK. You can see bellow screeshots:

 ![result1](https://discourse.paraview.org/uploads/default/original/2X/0/0bfb636c33ee88a1da4267bca0792f71fa757bcc.png) ![slice1](https://discourse.paraview.org/uploads/default/original/2X/c/c6730d1c75d812cf736c6522a30082c0f7706e2f.png)  
The second screenshot is slice . I think the slice result should be same with the origin file.

---

<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: [April 6, 2021, 12:15pm UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881/17 "2021-04-06T12:15:27Z")

</div>

> [@mwestphal](#):
>
> your problem is unclear please state the following:
> 
> 1. What are you doing with paraview, with clear steps to reproduce or a state file
> 2. What is the current incorrect results with a screenshot
> 3. What is the expected correct result, ideally with a screenshot

please read my previous post and answer each of the questions.

---

<div class="post-metadata">

### Author: ![gangyi\_rao](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gangyi_rao/32/6038_2.png) [@gangyi\_rao](https://discourse.paraview.org/u/gangyi_rao)
#### Post date: [April 6, 2021, 12:21pm UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881/18 "2021-04-06T12:21:15Z")

</div>

1. I add a slice for the file. the slice is very close to the outer surface.
2. The slice result: ![slice1](https://discourse.paraview.org/uploads/default/original/2X/c/c6730d1c75d812cf736c6522a30082c0f7706e2f.png)
3. I want the correct reuslt like the origin file:  
 ![result1](https://discourse.paraview.org/uploads/default/original/2X/0/0bfb636c33ee88a1da4267bca0792f71fa757bcc.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: [April 6, 2021, 12:32pm UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881/19 "2021-04-06T12:32:00Z")

</div>

Ok, I understand now. You actually have very small cells between the big cells because the slice is so close to the edge of the dataset.

Not an issue per se, this is just how the slice and clip operates.

---

<div class="post-metadata">

### Author: ![gangyi\_rao](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gangyi_rao/32/6038_2.png) [@gangyi\_rao](https://discourse.paraview.org/u/gangyi_rao)
#### Post date: [April 6, 2021, 12:37pm UTC](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881/20 "2021-04-06T12:37:58Z")

</div>

em… Is it the color interpolation on slice is different with the dataset?

[Next page](https://discourse.paraview.org/t/the-clip-result-is-not-right/6881.md?page=2)
