# Normals of slices not appearing in the calculator filter

**URL:** https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104
**Category:** ParaView Support
**Created:** [September 30, 2021, 3:31pm UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104 "2021-09-30T15:31:47Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![TimJim](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timjim/32/1270_2.png) [@TimJim](https://discourse.paraview.org/u/TimJim)
#### Post date: [September 30, 2021, 3:31pm UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104/1 "2021-09-30T15:31:47Z")

</div>

Hi - this might be a simple question but is it possible to get surface normals that are usable in calculator filters from slices?

Normally, for a 3D surface, I can do Extract Surface → Generate Surface Normal → Calculator and Normals\_X, Normals\_Y, and Normals\_Z are available, but when I tried to first take a slice first, and then do the pipeline on the slice, I can’t seem to access normals any more.

Is this the expected behaviour? If so, what would the correct way to extract normals from a closed 2D slice? In my case, I have sliced a wing, so I have a aerofoil section.

Thanks!

---

<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: [September 30, 2021, 4:19pm UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104/2 "2021-09-30T16:19:52Z")

</div>

Generate surface normals? The following works for me. Please give us the exact steps and a small dataset to try if this doesn’t work.

- 5.10.0-RC1
- Load disk\_out\_ref.exo from the Examples directory. Apply.
- Slice. Apply. Turn off the plane tool visibility.
- Generate Surface Normals.

The reason we probably need a dataset is there may be an incompatibility between your data type and generate surface normals?

---

<div class="post-metadata">

### Author: ![TimJim](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timjim/32/1270_2.png) [@TimJim](https://discourse.paraview.org/u/TimJim)
#### Post date: [September 30, 2021, 4:43pm UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104/3 "2021-09-30T16:43:28Z")

</div>

Hi Walter. Where are the examples located? I searched for them in my Paraview directory paths but was able to find any .exo files.

In the meantime, please see attached for a PVSM state file [slice\_wing\_no\_normal.pvsm](https://discourse.paraview.org/uploads/short-url/lRHRtJU1oAu7CqDdPynjwVeaQQR.pvsm) (360.2 KB)  
and here for the flow surface: [surface\_flow\_0.vtu](https://drive.google.com/file/d/15OftxGAl2hwp84CjgYlvvVBNw23ZNHX_/view?usp=sharing)

I’m running Paraview 5.8.1 and in the state file, I have done slice, generate surface normals, and opened a calculator to check if there are any normals. In my case, they are not present under the Vectors dropdown.

(The surface flow file was output from SU2.)

---

<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: [September 30, 2021, 4:57pm UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104/4 "2021-09-30T16:57:45Z")

</div>

File/ Open / Upper left corner.

---

<div class="post-metadata">

### Author: ![TimJim](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timjim/32/1270_2.png) [@TimJim](https://discourse.paraview.org/u/TimJim)
#### Post date: [September 30, 2021, 5:05pm UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104/5 "2021-09-30T17:05:48Z")

</div>

I did see you post that before but unfortunately, I don’t have it.

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

---

<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: [September 30, 2021, 5:16pm UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104/6 "2021-09-30T17:16:21Z")

</div>

It’s because you have built your own ParaView., or are connected to a cluster.

---

<div class="post-metadata">

### Author: ![TimJim](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timjim/32/1270_2.png) [@TimJim](https://discourse.paraview.org/u/TimJim)
#### Post date: [September 30, 2021, 6:48pm UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104/7 "2021-09-30T18:48:29Z")

</div>

Thanks for the hint - I downloaded the 5.9.1 binary for testing and I can confirm that using the .exo, the normals are present in the Calculator filter after calling Generate Surface Normals on a Slice, but not the .vtu geometry I had attached in the above post.

Would you be able to confirm if you are also unable to extract the normals on the .vtu geometry?

---

<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: [September 30, 2021, 6:59pm UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104/8 "2021-09-30T18:59:14Z")

</div>

@mwestphal @cory.quammen Hi guys. This dataset, a vtu file (Unstructured Grid) doesn’t let us run the Generate Surface Normals filter. Any idea why? Shouldn’t it just natively run? The dataset is a 3d surface unstructured grid.

---

<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: [September 30, 2021, 7:01pm UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104/9 "2021-09-30T19:01:06Z")

</div>

Hey Tim. The issue is that the dataset isn’t compatible with the input needs of the Generate Surface Normals filter. Run the Extract Surface filter on it (converting from Unstructured to Polygonal mesh), THEN the Generate Surface Normals filter.

---

<div class="post-metadata">

### Author: ![TimJim](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timjim/32/1270_2.png) [@TimJim](https://discourse.paraview.org/u/TimJim)
#### Post date: [September 30, 2021, 7:04pm UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104/10 "2021-09-30T19:04:04Z")

</div>

Hi Walter - I did try that on the previous version. I just double checked on 5.9.1 and it still doesn’t work for me:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/1/18ee5d60ef12e230b71edd71e6143000c5ba5a3f.png)

Did you see the normals on your installation?

---

<div class="post-metadata">

### Author: ![TimJim](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timjim/32/1270_2.png) [@TimJim](https://discourse.paraview.org/u/TimJim)
#### Post date: [September 30, 2021, 7:15pm UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104/11 "2021-09-30T19:15:32Z")

</div>

I just experimented with clip instead of slice. If I set a very thin box clip, then I can extract surface normals but would this be a bad approach in terms of memory?

For example if I create several hundred cuts along the wing to integrate the pressures on each sectional cut, (since my end goal is to integrate each section), would this be better done with many slices or many very slim box clips?

To stay on thread - what makes slice behave differently from clip? Thanks.

---

<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: [September 30, 2021, 7:26pm UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104/12 "2021-09-30T19:26:08Z")

</div>

Don’t do the slice. You already have your surface. Here is what I did.

 ![Screen Shot 2021-09-30 at 1.25.01 PM](https://discourse.paraview.org/uploads/default/original/2X/8/88c2b879fac363af5b1b7976bcbfc2f7e60f9176.png)

---

<div class="post-metadata">

### Author: ![TimJim](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timjim/32/1270_2.png) [@TimJim](https://discourse.paraview.org/u/TimJim)
#### Post date: [October 1, 2021, 5:54am UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104/13 "2021-10-01T05:54:49Z")

</div>

Hi Walter - sorry, I don’t think I understood you (or I explained the target poorly). My goal is to get slices so that I can see the local cross-sectional pressures. Then would like to integrate each 2D slice for a local lift coefficient, so that I can produce a plot like this:

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

Did you mean that I could achieve the same thing without taking slices? Thanks.

---

<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: [October 1, 2021, 8:08am UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104/14 "2021-10-01T08:08:21Z")

</div>

so you want to produce slices like this one ? :

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

---

<div class="post-metadata">

### Author: ![TimJim](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timjim/32/1270_2.png) [@TimJim](https://discourse.paraview.org/u/TimJim)
#### Post date: [October 1, 2021, 8:32am UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104/15 "2021-10-01T08:32:16Z")

</div>

Hi Mathieu, thanks - yes, just in the the Y-normal axis! So Like this:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/7/7d46c4699219cba4bcaf22d2ff80927fa7ea9e39.png)  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/3/3c208ed827abf868b4e6c4888a66c0702f0c594d.jpeg)  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/0/06b4280503266088dc1513ebadc445f87da6ed79.png)

So that I can get something like this for each section:  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/a/ad88df880aea2fc37908be2cdfbed105736cdc09.png)

Then I can integrate each section for the desired local lift.

---

<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: [October 1, 2021, 8:42am UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104/16 "2021-10-01T08:42:23Z")

</div>

So what is missing for you here ?

---

<div class="post-metadata">

### Author: ![TimJim](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timjim/32/1270_2.png) [@TimJim](https://discourse.paraview.org/u/TimJim)
#### Post date: [October 1, 2021, 8:43am UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104/17 "2021-10-01T08:43:27Z")

</div>

I can’t get the normals from a slice in the calculator filter!

---

<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: [October 1, 2021, 8:49am UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104/18 "2021-10-01T08:49:20Z")

</div>

Ok, got it, do as follows:

- Open surface\_flow.vtu, Apply
- ExtractSurface, Apply
- GenerateSurfaceNormals, Apply
- Slice, Y axis, Apply
- (Optinal, Glyph with normals, Apply)  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/5/5ee4c60fb27d1b4cdca773c6a055ad3250a69a1f.png)

---

<div class="post-metadata">

### Author: ![TimJim](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timjim/32/1270_2.png) [@TimJim](https://discourse.paraview.org/u/TimJim)
#### Post date: [October 1, 2021, 9:02am UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104/19 "2021-10-01T09:02:34Z")

</div>

Fantastic, that solved the issue. Thanks for your help Walter & Mathieu! So the solutions is to extract the surface and get the normals before slicing.

How come for a clip, we can still get the normals after clipping? Is this because slices loose surface information as they are ‘infinitely thin’? Thanks for your help.

---

<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: [October 1, 2021, 9:07am UTC](https://discourse.paraview.org/t/normals-of-slices-not-appearing-in-the-calculator-filter/8104/20 "2021-10-01T09:07:23Z")

</div>

> [@TimJim](#):
>
> How come for a clip, we can still get the normals after clipping? Is this because slices loose surface information as they are ‘infinitely thin’? Thanks for your help.

Yes.
