# Smoothing the output of Rotational Extrusion

**URL:** https://discourse.paraview.org/t/smoothing-the-output-of-rotational-extrusion/6211
**Category:** ParaView Support
**Created:** [January 12, 2021, 5:30pm UTC](https://discourse.paraview.org/t/smoothing-the-output-of-rotational-extrusion/6211 "2021-01-12T17:30:26Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![woodscn](https://discourse.paraview.org/user_avatar/discourse.paraview.org/woodscn/32/3226_2.png) [@woodscn](https://discourse.paraview.org/u/woodscn)
#### Post date: [January 12, 2021, 5:30pm UTC](https://discourse.paraview.org/t/smoothing-the-output-of-rotational-extrusion/6211/1 "2021-01-12T17:30:26Z")

</div>

I’m trying to make a visually impressive (as in, I’m willing to sacrifice _some_ technical accuracy) 3-D movie based on 2-D axisymmetric data. I’ll walk through the steps I’ve tried and the reasons why.

I have cell-centered, multimaterial data, where the material is identified by an integer scalar field:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/9/93f9bd471f12aa4ec0a0d0203f5373202ccc129b.png)

I want to color materials differently, so I will focus on one of those first. I extract the specific material using two Clip filters:  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/8/881b82c641abaae02c634ca029a388601eaeddd6.png)

The result is quite blocky, because it is Cell Data, but I get spurious artifacts if I try to use Point Data: (using Contours is similar)  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/3/3e25c047090be841105f24d46af4195bc9e7a4c2.png)

I convert to Point Data and extract the surface in order to perform a rotational extrusion:  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/a/aea71f1f965d63ddc800aec07b3f763421b0d9e1.png)

This looks good, other than the discrete steps. I try to smooth these using the Smooth filter:  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/a/a3b019fc08b4fd3595a71d2754461e8d10c3b1f1.png)

This looks great, except for the seam where the extrusion “connects”.

Does anyone have any ideas on how I can improve this?

Thanks,

Nathan

---

<div class="post-metadata">

### Author: ![boonth](https://discourse.paraview.org/user_avatar/discourse.paraview.org/boonth/32/4763_2.png) [@boonth](https://discourse.paraview.org/u/boonth)
#### Post date: [January 12, 2021, 5:57pm UTC](https://discourse.paraview.org/t/smoothing-the-output-of-rotational-extrusion/6211/2 "2021-01-12T17:57:16Z")

</div>

I’m wondering why you would get artifacts when converting to point data. Are you doing MergeBlocks and computing Ghost Cells before applying Cell Data To Point Data?

---

<div class="post-metadata">

### Author: ![woodscn](https://discourse.paraview.org/user_avatar/discourse.paraview.org/woodscn/32/3226_2.png) [@woodscn](https://discourse.paraview.org/u/woodscn)
#### Post date: [January 12, 2021, 6:00pm UTC](https://discourse.paraview.org/t/smoothing-the-output-of-rotational-extrusion/6211/3 "2021-01-12T18:00:38Z")

</div>

Yes, I did both of those (2 levels of ghost cells). I assume that it’s because clipping around mat==2 captures some of the interpolation between materials 3 and 1.

---

<div class="post-metadata">

### Author: ![patchett2002](https://discourse.paraview.org/user_avatar/discourse.paraview.org/patchett2002/32/235_2.png) [@patchett2002](https://discourse.paraview.org/u/patchett2002)
#### Post date: [January 12, 2021, 9:35pm UTC](https://discourse.paraview.org/t/smoothing-the-output-of-rotational-extrusion/6211/4 "2021-01-12T21:35:44Z")

</div>

I wonder if you run clean to grid first. Ghost Cells wouldn’t get caught because the boundaries are likely global boundaries on the dataset. I believe Clean to grid would identify identical points and merge them.

---

<div class="post-metadata">

### Author: ![woodscn](https://discourse.paraview.org/user_avatar/discourse.paraview.org/woodscn/32/3226_2.png) [@woodscn](https://discourse.paraview.org/u/woodscn)
#### Post date: [January 12, 2021, 9:40pm UTC](https://discourse.paraview.org/t/smoothing-the-output-of-rotational-extrusion/6211/5 "2021-01-12T21:40:30Z")

</div>

I’ve made some progress for what I need by only doing a 270 deg. rotation. It’s not terrible. Where would I apply the Clean to Grid filter?

 ![image](https://discourse.paraview.org/uploads/default/original/2X/3/31c34b0b5816dd6bf771cc03b225b2b4e43c2e06.png)

---

<div class="post-metadata">

### Author: ![patchett2002](https://discourse.paraview.org/user_avatar/discourse.paraview.org/patchett2002/32/235_2.png) [@patchett2002](https://discourse.paraview.org/u/patchett2002)
#### Post date: [January 12, 2021, 9:42pm UTC](https://discourse.paraview.org/t/smoothing-the-output-of-rotational-extrusion/6211/6 "2021-01-12T21:42:52Z")

</div>

Clean to grid after the rotation, if the last bit of new geometry from the rotation matches the position of the initial geometry (nearly identically) it should work…

---

<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: [January 13, 2021, 10:52am UTC](https://discourse.paraview.org/t/smoothing-the-output-of-rotational-extrusion/6211/7 "2021-01-13T10:52:25Z")

</div>

> [@woodscn](#):
>
> I’m trying to make a visually impressive

You may want to take a look into PBR or Raytracing rendering.  
Supported by ParaView since 5.6.0.

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

---

<div class="post-metadata">

### Author: ![woodscn](https://discourse.paraview.org/user_avatar/discourse.paraview.org/woodscn/32/3226_2.png) [@woodscn](https://discourse.paraview.org/u/woodscn)
#### Post date: [January 13, 2021, 5:35pm UTC](https://discourse.paraview.org/t/smoothing-the-output-of-rotational-extrusion/6211/8 "2021-01-13T17:35:32Z")

</div>

I’m using PBR for the metallic parts in the later image above. Will ray-tracing help me? Everything we’re looking at is extruded, hollow, data. I’d LOVE for a way to make the black portion look smoky, but so far the best I’ve come up with is to texture it.
