# Wedge-shaped clip

**URL:** https://discourse.paraview.org/t/wedge-shaped-clip/4158
**Category:** ParaView Support
**Created:** [April 23, 2020, 4:06pm UTC](https://discourse.paraview.org/t/wedge-shaped-clip/4158 "2020-04-23T16:06:06Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Patrick\_Xian](https://discourse.paraview.org/user_avatar/discourse.paraview.org/patrick_xian/32/1599_2.png) [@Patrick\_Xian](https://discourse.paraview.org/u/Patrick_Xian)
#### Post date: [April 23, 2020, 4:06pm UTC](https://discourse.paraview.org/t/wedge-shaped-clip/4158/1 "2020-04-23T16:06:06Z")

</div>

Is it possible to adjust the angular range of the cylindrical or spherical clip region directly in ParaView? I wish to create a visualization like the cheese wheel with a wedge cut out to reveal the inside.  
 ![wedge](https://discourse.paraview.org/uploads/default/original/2X/f/f8dd27cdb69f3919ce4e9cfa64108a63f97cf80f.png)

For a single visualization, this should be possible by masking the data, but it would be great to be able to explore different angular parameters continuously.

---

<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 27, 2020, 3:09am UTC](https://discourse.paraview.org/t/wedge-shaped-clip/4158/2 "2020-04-27T03:09:50Z")

</div>

Not possible afaik, but that seems to be a simple addition to the cylindrical clip.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [April 27, 2020, 4:10am UTC](https://discourse.paraview.org/t/wedge-shaped-clip/4158/3 "2020-04-27T04:10:33Z")

</div>

@utkarsh.ayachit @cory.quammen @Kenneth_Moreland Think this should be added to the clip filter? How valuable would this be?

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [April 27, 2020, 2:42pm UTC](https://discourse.paraview.org/t/wedge-shaped-clip/4158/4 "2020-04-27T14:42:13Z")

</div>

Shouldn’t be hard to implement. Can’t speak to the value, but it seems like a reasonable clip type to want for certain applications.

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [April 27, 2020, 2:52pm UTC](https://discourse.paraview.org/t/wedge-shaped-clip/4158/5 "2020-04-27T14:52:00Z")

</div>

If the data is already cylindrical, isn’t this simply a clip using 2 planes?

---

<div class="post-metadata">

### Author: ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)
#### Post date: [April 27, 2020, 2:54pm UTC](https://discourse.paraview.org/t/wedge-shaped-clip/4158/6 "2020-04-27T14:54:25Z")

</div>

I’m not sure implementing this is very easy. The way clip works, you are likely to get errors at the point of the wedge, especially for acute angles. Also, manipulating this would suggest a whole new 3D widget, which would not be trivial to implement.

As @utkarsh.ayachit said, using a sequence of a cylinder clip and two plane clips would give a more accurate wedge clip than trying to do it all at once.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [April 27, 2020, 3:01pm UTC](https://discourse.paraview.org/t/wedge-shaped-clip/4158/7 "2020-04-27T15:01:31Z")

</div>

Right, we already do multiple clips for the **Exact** option for box clipping - this would be similar. I didn’t think about the need for a new widget, which could be a fair amount of work.

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [April 27, 2020, 3:06pm UTC](https://discourse.paraview.org/t/wedge-shaped-clip/4158/8 "2020-04-27T15:06:04Z")

</div>

I don’t think we need to add this as a new mode. Just adding 2 clips gets the user what he wants. There won’t be any performance benefit to this against having the two clips being added internally in the filter anyways.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [April 27, 2020, 4:35pm UTC](https://discourse.paraview.org/t/wedge-shaped-clip/4158/9 "2020-04-27T16:35:03Z")

</div>

Agreed. Not one of my best ideas. Carry on, team!

---

<div class="post-metadata">

### Author: ![Patrick\_Xian](https://discourse.paraview.org/user_avatar/discourse.paraview.org/patrick_xian/32/1599_2.png) [@Patrick\_Xian](https://discourse.paraview.org/u/Patrick_Xian)
#### Post date: [May 4, 2020, 12:52am UTC](https://discourse.paraview.org/t/wedge-shaped-clip/4158/10 "2020-05-04T00:52:05Z")

</div>

Just to provide some real-life settings

1. Fig. 5b or c in the following manuscript  
[https://arxiv.org/abs/1906.12155](https://arxiv.org/abs/1906.12155)  
the data is masked beforehand and then rendered volumetrically, but it could be useful to explore interactively using a wedge-shaped clip in Paraview.

2. Tomography data, such as the charcoal from the following  
[https://tomobank.readthedocs.io/en/latest/source/data/docs.data.tomosaic.html](https://tomobank.readthedocs.io/en/latest/source/data/docs.data.tomosaic.html)

---

<div class="post-metadata">

### Author: ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)
#### Post date: [May 4, 2020, 2:38pm UTC](https://discourse.paraview.org/t/wedge-shaped-clip/4158/11 "2020-05-04T14:38:11Z")

</div>

@utkarsh.ayachit, in one of @Patrick_Xian’s examples (figure 5 in the arXiv paper) there is a wedge removed from a cylinder rather than remaining. How do you create a clip like that with 2 plane clips?

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [May 4, 2020, 3:59pm UTC](https://discourse.paraview.org/t/wedge-shaped-clip/4158/12 "2020-05-04T15:59:15Z")

</div>

You need 3 clips for that.  
[wedge-clip.pvsm](https://discourse.paraview.org/uploads/short-url/g7X5DrAKJeooDqWCWdN204aKkCo.pvsm) (598.9 KB)

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

Here, the **Clip1** is only used to generate the cylindrical data from Wavelet so can be removed if your data is already cylindrical.

---

<div class="post-metadata">

### Author: ![Patrick\_Xian](https://discourse.paraview.org/user_avatar/discourse.paraview.org/patrick_xian/32/1599_2.png) [@Patrick\_Xian](https://discourse.paraview.org/u/Patrick_Xian)
#### Post date: [May 4, 2020, 7:30pm UTC](https://discourse.paraview.org/t/wedge-shaped-clip/4158/13 "2020-05-04T19:30:22Z")

</div>

Thanks, @utkarsh.ayachit, this looks awesome and I can change the wedge angle as well!

Is it then possible to combine Clip2 and Clip4 and export a single clipped volume dataset (in whatever format, but ideally vti or tiff)?

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [May 4, 2020, 10:55pm UTC](https://discourse.paraview.org/t/wedge-shaped-clip/4158/14 "2020-05-04T22:55:24Z")

</div>

Create and apply **Append DataSets** after selecting the two filters in the Pipeline browser. Then you can save the data out as a `.vtu`.
