# Problem with clip in Paraview 5.8.0

**URL:** https://discourse.paraview.org/t/problem-with-clip-in-paraview-5-8-0/5371
**Category:** ParaView Support
**Tags:** python
**Created:** [September 17, 2020, 9:51am UTC](https://discourse.paraview.org/t/problem-with-clip-in-paraview-5-8-0/5371 "2020-09-17T09:51:50Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![Naeeme.dmo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/naeeme.dmo/32/4961_2.png) [@Naeeme.dmo](https://discourse.paraview.org/u/Naeeme.dmo)
#### Post date: [September 23, 2020, 3:24pm UTC](https://discourse.paraview.org/t/problem-with-clip-in-paraview-5-8-0/5371/8 "2020-09-23T15:24:37Z")

</div>

Sorry for the confusion.  
So I ran this code on both versions of paraview (5.5.0 and 5.8.1):

```auto
paraview.compatibility.major = 5
paraview.compatibility.minor = 5

box = Box()

clip = Clip(Input=box, ClipType = 'Box')
clip.ClipType.Position= [0.0, 0.0, 0.0]
clip.ClipType.Bounds = [-1.,0.,-1.,1.,-1.,1.]

RenderView = GetActiveViewOrCreate('RenderView')
boxdisplay = GetDisplayProperties(clip, view=RenderView) 

```

The code is supposed to make a zero centered unit cube and clip it on the yz axis.

The code works fine with paraview 5.5.0, I get the expected result, i.e half a box.

 ![Paraview5.5.0](https://discourse.paraview.org/uploads/default/original/2X/4/4183dac89e1d16ecedea4f9955a20f64ff62f6bb.png)

Whereas for paraview 5.8.1, the clip somehow cuts of a corner of the cube, which makes no sense to me, see the following screenshot

 ![Paraview5.8.1](https://discourse.paraview.org/uploads/default/original/2X/8/8c57e6c25d51606ff13b39931ad8abd38da81a50.png)

**steps to reproduce**

- open paraview gui
- click View \> Python shell
- paste the code in the Python shell
- Press Enter

I am working on centos 8. I have paraview 5.5.0 (binaries) and paraview 5.8.1 (binaries). I load the different versions through a module management system.  
Thanks for your help.

---

_[View the full topic](https://discourse.paraview.org/t/problem-with-clip-in-paraview-5-8-0/5371)._
