# How to slice with Cone surface or Revolution shape

**URL:** https://discourse.paraview.org/t/how-to-slice-with-cone-surface-or-revolution-shape/5486
**Category:** ParaView Support
**Created:** [October 4, 2020, 5:41pm UTC](https://discourse.paraview.org/t/how-to-slice-with-cone-surface-or-revolution-shape/5486 "2020-10-04T17:41:34Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Haris](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/h/ccd318/32.png) [@Haris](https://discourse.paraview.org/u/Haris)
#### Post date: [October 4, 2020, 5:41pm UTC](https://discourse.paraview.org/t/how-to-slice-with-cone-surface-or-revolution-shape/5486/1 "2020-10-04T17:41:34Z")

</div>

Hi everyone,

I mainly use ensight to analyze my computation results. (CFD results).

I don’t have access to Ensight anymore, so I have to use paraview. I don’t know Paraview very well. Let’s say I’m a beginner.

To measure the massflow rate through different holes, I have to slice with a cone type surface and a revolution type surface.

This type of surface exists in ensight (cone, frustum, revolution) but I didn’t find this possibility in paraview. I didn’t find any information on the internet either.

Could you tell me how to make a cut with this kind of slice type : cone, frustum and revolution ?

In advance, thank you 🙂

---

<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: [October 5, 2020, 2:09pm UTC](https://discourse.paraview.org/t/how-to-slice-with-cone-surface-or-revolution-shape/5486/2 "2020-10-05T14:09:50Z")

</div>

Welcome to ParaView, @Haris!

The **Slice** filter has several Slice Types (Plane, Box, Sphere, Cylinder), but not the types you mention. A cone and perhaps frustum function could be added without too much trouble. Surface of revolution may not quite fit in the **Slice** filter framework.

As a workaround, you can resample datasets onto arbitrary surfaces using the **Resample With Dataset** filter. First, you’ll need to create the cone, frustum, or revolution surface. The cone can be created with the **Cone** source in the sources menu. Place the cone by altering the cone parameters. Second, create the **Resample With Dataset** filter. When you create it, you will have to set its two inputs. “Source Data Arrays” is the dataset that should be resampled onto the cone, and “Destination Mesh” should be the cone.

HTH!

---

<div class="post-metadata">

### Author: ![Haris](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/h/ccd318/32.png) [@Haris](https://discourse.paraview.org/u/Haris)
#### Post date: [October 5, 2020, 4:06pm UTC](https://discourse.paraview.org/t/how-to-slice-with-cone-surface-or-revolution-shape/5486/3 "2020-10-05T16:06:01Z")

</div>

Hi Corry !

First of all, thank you for your (quick) reply ! 👍

Here are my answers to your proposal:

**1/ The Resample With Dataset feature doesn’t work on my case. See the picture attached**

 ![Capture d’écran 2020-10-05 à 17.53.42](https://discourse.paraview.org/uploads/default/original/2X/0/069e7a18b1833969cd30039a595588a6a381d109.jpeg)

**2/ I’m not sure Resample With Dataset answers my problem. Let me explain:**

- The result of Resample With Dataset gives me a new 3D solution
- I’m only interested in the intersection of a cone and my 3D solution
- I would only like to do the projection on the outer surface of the cone. (no projection in the volume of the cone)

---

<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: [October 9, 2020, 9:47pm UTC](https://discourse.paraview.org/t/how-to-slice-with-cone-surface-or-revolution-shape/5486/4 "2020-10-09T21:47:42Z")

</div>

Indeed, you have identified some problems with sampling on a cone that is coarsely tessellated from the apex to the base. There are some subdivision filters in ParaView to refine the coarseness, but they don’t provide an even refinement from apex to base. A tessellation property would need be added to support this.

Better yet would be to fully implement a cone as a “Slice Type” in the **Slice** filter. Please feel free to add a feature request at the ParaView issue tracker: [https://gitlab.kitware.com/paraview/paraview/-/issues](https://gitlab.kitware.com/paraview/paraview/-/issues)

---

<div class="post-metadata">

### Author: ![Haris](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/h/ccd318/32.png) [@Haris](https://discourse.paraview.org/u/Haris)
#### Post date: [October 11, 2020, 5:58pm UTC](https://discourse.paraview.org/t/how-to-slice-with-cone-surface-or-revolution-shape/5486/5 "2020-10-11T17:58:25Z")

</div>

Hi Cory,

thanks for your reply

A feature request has been added. Here is the link to the request : [https://gitlab.kitware.com/paraview/paraview/-/issues/20248](https://gitlab.kitware.com/paraview/paraview/-/issues/20248)

---

<div class="post-metadata">

### Author: ![Lorenzo\_Cozzi](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lorenzo_cozzi/32/3171_2.png) [@Lorenzo\_Cozzi](https://discourse.paraview.org/u/Lorenzo_Cozzi)
#### Post date: [May 26, 2021, 7:25am UTC](https://discourse.paraview.org/t/how-to-slice-with-cone-surface-or-revolution-shape/5486/6 "2021-05-26T07:25:13Z")

</div>

Are there any updates about the feature request? On the posted link there is no due date or people assigned to it. Will it be ever implemented in Paraview?

---

<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: [May 26, 2021, 9:05am UTC](https://discourse.paraview.org/t/how-to-slice-with-cone-surface-or-revolution-shape/5486/7 "2021-05-26T09:05:17Z")

</div>

I’m afraid not, but this feature is open for funding, see here for more info:

> [@How are features and bug fixes incorporated into ParaView?](https://discourse.paraview.org/t/how-are-features-and-bug-fixes-incorporated-into-paraview/4735):
>
> As with all open source projects, adding features and fixing bugs takes developer effort. That effort may originate from volunteer community contributors, or through paid professional services offered by companies like [Kitware](https://www.kitware.com). Features and bug fixes are prioritized by the needs of contributing community members and by professional services customers. Note that contributions are vetted by a rigorous community review and testing process; therefore it is recommended that significant changes are d…

---

<div class="post-metadata">

### Author: ![Lorenzo\_Cozzi](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lorenzo_cozzi/32/3171_2.png) [@Lorenzo\_Cozzi](https://discourse.paraview.org/u/Lorenzo_Cozzi)
#### Post date: [June 1, 2021, 7:27am UTC](https://discourse.paraview.org/t/how-to-slice-with-cone-surface-or-revolution-shape/5486/8 "2021-06-01T07:27:37Z")

</div>

Unfortunately I’m currently working in a really small company. I do not think we have resources to fund this feature.

---

<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: [June 1, 2021, 2:13pm UTC](https://discourse.paraview.org/t/how-to-slice-with-cone-surface-or-revolution-shape/5486/9 "2021-06-01T14:13:18Z")

</div>

I’m not sure if anyone has brought this up in this thread, but the `Slice` filter works (in principle) by creating a point field that is negative on one side of the slicing surface, positive on the other side, and 0 on the slicing surface itself. It then uses a `Contour` to do the actual slice. So, if you can describe such a field using the `Calculator` (or some other similar filter), you could then create the slice. You would not have the nice 3D widget for the built-in slice surfaces, but it could be a quick fix.

---

<div class="post-metadata">

### Author: ![Lorenzo\_Cozzi](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lorenzo_cozzi/32/3171_2.png) [@Lorenzo\_Cozzi](https://discourse.paraview.org/u/Lorenzo_Cozzi)
#### Post date: [June 1, 2021, 2:39pm UTC](https://discourse.paraview.org/t/how-to-slice-with-cone-surface-or-revolution-shape/5486/10 "2021-06-01T14:39:10Z")

</div>

Thanks a lot for the suggestion, you made my day!
