# Help with Rotational Extrusion

**URL:** https://discourse.paraview.org/t/help-with-rotational-extrusion/4840
**Category:** ParaView Support
**Created:** [July 14, 2020, 6:13pm UTC](https://discourse.paraview.org/t/help-with-rotational-extrusion/4840 "2020-07-14T18:13:13Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![AD\_TX](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/ed655f/32.png) [@AD\_TX](https://discourse.paraview.org/u/AD_TX)
#### Post date: [July 14, 2020, 6:13pm UTC](https://discourse.paraview.org/t/help-with-rotational-extrusion/4840/1 "2020-07-14T18:13:14Z")

</div>

Hello all,

I must be doing something wrong with the Rotational Extrusion filter. I was hoping that someone could point me in the right direction. I am using Paraview 5.5.2 on Linux.

My input data is a VTK file with 2d data organized in x and y and one unit deep in z. The y-axis of the input data is the axis which I would like to rotate around.

My workflow is:  
1 [vtk file] -\> type unstructured grid  
2 Transform -\> Rotate 90 on x axis so that the axis of symmetry is now the z-axis. Output data type is unstructured grid.  
3 ExtractSurface -\> output data type is Polygonal mesh  
4 RotationalExtrusion (resolution 12, angle 270, no capping angle) - output is polygonal mesh with 0 cells.

If I try RotationalExtrusion (resolution 12, angle 270, capping angle) - just generates the capping faces but no rotational extrusion between them.

Clearly I’m doing something wrong. I suspect that my error lies in the Extract Surface step. In this step I currently use the default settings (piece invarient, 1 level). Perhaps the fact that my input data set is one unit deep on the original z axis (before translation) is the reason? The output data from this step also looks like it is one unit deep rather than being a 2d surface.

Thank you in advance for any suggestions.

-A

---

<div class="post-metadata">

### Author: ![AD\_TX](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/ed655f/32.png) [@AD\_TX](https://discourse.paraview.org/u/AD_TX)
#### Post date: [July 14, 2020, 11:54pm UTC](https://discourse.paraview.org/t/help-with-rotational-extrusion/4840/2 "2020-07-14T23:54:23Z")

</div>

Followup.

I was able to fix my issue by using the slice filter in place of the ExtractSurface filter. Hopefully this will help others.

Best,  
-A

---

<div class="post-metadata">

### Author: ![AD\_TX](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/ed655f/32.png) [@AD\_TX](https://discourse.paraview.org/u/AD_TX)
#### Post date: [July 15, 2020, 3:42pm UTC](https://discourse.paraview.org/t/help-with-rotational-extrusion/4840/3 "2020-07-15T15:42:17Z")

</div>

One further question.

Here’s what I am trying to do: I ran a simulation using radial symmetry. I’m analyzing the results and wanted to integrate several result quantities. My thought process was that I would extrude the 2d simulation results to create a cylinder volume, and the integrate the variables that I wanted across that cylindrical volume.

I realize now that the rotational extrusion generates a surface, not a volume.

Are there other approaches to get to what I was trying to do? That is, taking a 2d data set that represents a cross section of a cylinder and using this to calculate what the volumetric integration of those quantities would look like?

Thank you in advance,

-A

---

<div class="post-metadata">

### Author: ![kevinm387](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kevinm387/32/9586_2.png) [@kevinm387](https://discourse.paraview.org/u/kevinm387)
#### Post date: [July 5, 2022, 5:27pm UTC](https://discourse.paraview.org/t/help-with-rotational-extrusion/4840/4 "2022-07-05T17:27:54Z")

</div>

Hi Andrew,  
Did you ever find an answer to this question? I’m interested in doing something very similar.  
Thanks!  
Kevin

---

<div class="post-metadata">

### Author: ![Joachim\_P](https://discourse.paraview.org/user_avatar/discourse.paraview.org/joachim_p/32/9596_2.png) [@Joachim\_P](https://discourse.paraview.org/u/Joachim_P)
#### Post date: [July 8, 2022, 11:18am UTC](https://discourse.paraview.org/t/help-with-rotational-extrusion/4840/5 "2022-07-08T11:18:13Z")

</div>

You can try to use the “Delaunay 3D” filter. It will mesh your polygonal data into a volume.

HTH

---

<div class="post-metadata">

### Author: ![jmisedam](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/b487fb/32.png) [@jmisedam](https://discourse.paraview.org/u/jmisedam)
#### Post date: [July 20, 2022, 8:28pm UTC](https://discourse.paraview.org/t/help-with-rotational-extrusion/4840/6 "2022-07-20T20:28:28Z")

</div>

Also, if you want to preserve the connectivity of the original mesh and save some time, there’s a VTK filter called vtkVolumeOfRevolutionFilter which can rotate 2d polygonal data around an arbitrary axis to create 3d volumetric output. There isn’t a Paraview interface for it, so I wrote a small XML-only plugin for it:

[VolumeOfRevolution.xml](https://discourse.paraview.org/uploads/short-url/44qpxdU1NSTMX9exBj0SMOpVtxt.xml) (1.9 KB)

Since the filter is already in VTK, this XML file can be loaded using the plugin manager to allow rotation of 2d axisymmetric data into a 3D volume mesh with variable resolution around an arbitrary axis; it’s almost an identical interface to the Rotational Extrusion filter, but actually makes volumes. Hope this helps!!

---

<div class="post-metadata">

### Author: ![jmisedam](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/b487fb/32.png) [@jmisedam](https://discourse.paraview.org/u/jmisedam)
#### Post date: [July 21, 2022, 6:51pm UTC](https://discourse.paraview.org/t/help-with-rotational-extrusion/4840/7 "2022-07-21T18:51:53Z")

</div>

Turns out this solution doesn’t work yet, as there was a bug found just this morning (7/21/2022) in vtkVolumeOfRevolutionFilter that causes it to not properly copy pointData:

[https://gitlab.kitware.com/vtk/vtk/-/issues/18622](https://gitlab.kitware.com/vtk/vtk/-/issues/18622)

If you have a custom Paraview build, you could update the necessary VTK code either once it gets approved to merge or in your own source code; otherwise, it looks like the using the Angular Periodic Filter followed by Delaunay3D is the only option until this is fixed.

---

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.paraview.org/u/Kenichiro-Yoshimi)
#### Post date: [July 26, 2022, 8:17am UTC](https://discourse.paraview.org/t/help-with-rotational-extrusion/4840/8 "2022-07-26T08:17:32Z")

</div>

This bug fix has been merged. Thanks!

---

<div class="post-metadata">

### Author: ![Ethan\_Stam](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ethan_stam/32/2520_2.png) [@Ethan\_Stam](https://discourse.paraview.org/u/Ethan_Stam)
#### Post date: [April 10, 2023, 9:24pm UTC](https://discourse.paraview.org/t/help-with-rotational-extrusion/4840/9 "2023-04-10T21:24:51Z")

</div>

Nice filter Jonah, just tried it in 5.10.1 and it seems to work well!

---

<div class="post-metadata">

### Author: ![Trophime](https://discourse.paraview.org/user_avatar/discourse.paraview.org/trophime/32/966_2.png) [@Trophime](https://discourse.paraview.org/u/Trophime)
#### Post date: [May 14, 2024, 1:51pm UTC](https://discourse.paraview.org/t/help-with-rotational-extrusion/4840/10 "2024-05-14T13:51:23Z")

</div>

@Ethan_Stam Could you please add some information on how to use this filter in paraView?  
Best
