# Added normal vector become useless from paraview 5.9

**URL:** https://discourse.paraview.org/t/added-normal-vector-become-useless-from-paraview-5-9/6989
**Category:** Development
**Created:** [April 17, 2021, 10:46am UTC](https://discourse.paraview.org/t/added-normal-vector-become-useless-from-paraview-5-9/6989 "2021-04-17T10:46:40Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![sharon](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@sharon](https://discourse.paraview.org/u/sharon)
#### Post date: [April 17, 2021, 10:46am UTC](https://discourse.paraview.org/t/added-normal-vector-become-useless-from-paraview-5-9/6989/1 "2021-04-17T10:46:40Z")

</div>

Dear Experts,

I found my sphere become not such smooth after upgrade into paraview 5.9  
i created my own sphere and calculated its normal vector, which works good in paraview 5.8, but after upgrade to paraview 5.9 it become useless, anything changed in paraview 5.9?

my sphere is added into multiblock dataset as a sub block and there other sub block like line, which dont have any normal vector, so my normal vector is partial normal vector from multiblock view, not sure anything with this?

 ![image](https://discourse.paraview.org/uploads/default/original/2X/3/32a0fd57ea52aa54974cab26fc99467d55179253.jpeg)

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.paraview.org/user_avatar/discourse.paraview.org/danlipsa/32/1563_2.png) [@danlipsa](https://discourse.paraview.org/u/danlipsa)
#### Post date: [April 17, 2021, 3:08pm UTC](https://discourse.paraview.org/t/added-normal-vector-become-useless-from-paraview-5-9/6989/2 "2021-04-17T15:08:40Z")

</div>

Can you post the code so that we can try to replicate this?

Incidentally, there is an issue with GenerateSurfaceNormals but it affects 5.8.1 and 5.9 so it seems unrelated.  
[https://gitlab.kitware.com/paraview/paraview/-/issues/20651](https://gitlab.kitware.com/paraview/paraview/-/issues/20651)

Thanks,  
Dan

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.paraview.org/user_avatar/discourse.paraview.org/danlipsa/32/1563_2.png) [@danlipsa](https://discourse.paraview.org/u/danlipsa)
#### Post date: [April 18, 2021, 2:39am UTC](https://discourse.paraview.org/t/added-normal-vector-become-useless-from-paraview-5-9/6989/3 "2021-04-18T02:39:14Z")

</div>

This turned out to be user error. There is a parameter to the GenerateSurfaceError that causes those edges to be preserverd.

---

<div class="post-metadata">

### Author: ![sharon](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@sharon](https://discourse.paraview.org/u/sharon)
#### Post date: [April 19, 2021, 12:53am UTC](https://discourse.paraview.org/t/added-normal-vector-become-useless-from-paraview-5-9/6989/4 "2021-04-19T00:53:19Z")

</div>

Hi Dan,  
Thank you for your reply!

i created my own sphere follow the instruction from below:  
[http://www.songho.ca/opengl/gl\_sphere.html](http://www.songho.ca/opengl/gl_sphere.html)

This works good in paraview 5.8.1 but after i upgrade to paraview 5.9 seems these normals failed to work as intended:  
every point’s normal vector should from sphere center to point, not the normal of those triangle plane,right?

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

---

<div class="post-metadata">

### Author: ![sharon](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@sharon](https://discourse.paraview.org/u/sharon)
#### Post date: [April 19, 2021, 12:54am UTC](https://discourse.paraview.org/t/added-normal-vector-become-useless-from-paraview-5-9/6989/5 "2021-04-19T00:54:51Z")

</div>

Hi Dan,  
What do you mean “this is user error”, and where can i found the parameter

> [@danlipsa](#):
>
> GenerateSurfaceError

Can you give me more detail or further explanations?  
Thank you!

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.paraview.org/user_avatar/discourse.paraview.org/danlipsa/32/1563_2.png) [@danlipsa](https://discourse.paraview.org/u/danlipsa)
#### Post date: [April 19, 2021, 1:52pm UTC](https://discourse.paraview.org/t/added-normal-vector-become-useless-from-paraview-5-9/6989/6 "2021-04-19T13:52:41Z")

</div>

Hi Sharon,  
The link to the bug report I sent (now closed) has more information about that. Cory pointed me to the Feature Angle parameter that causes the sphere edges to be visible in the examples I gave. The Splitting parameter needs also to be on which it is by default.

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.paraview.org/user_avatar/discourse.paraview.org/danlipsa/32/1563_2.png) [@danlipsa](https://discourse.paraview.org/u/danlipsa)
#### Post date: [April 19, 2021, 1:56pm UTC](https://discourse.paraview.org/t/added-normal-vector-become-useless-from-paraview-5-9/6989/7 "2021-04-19T13:56:18Z")

</div>

HI Sharon,  
The exact code would be needed to reproduce the behaviour you are seeing.

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.paraview.org/user_avatar/discourse.paraview.org/danlipsa/32/1563_2.png) [@danlipsa](https://discourse.paraview.org/u/danlipsa)
#### Post date: [April 20, 2021, 1:57pm UTC](https://discourse.paraview.org/t/added-normal-vector-become-useless-from-paraview-5-9/6989/8 "2021-04-20T13:57:35Z")

</div>

The normals are specified with one point and they represent the vector from the origin (center of the sphere probably) to that point. They do represent the normals of the triangle planes.  
Is this a programable filter? Can I have that so that I can just plug it in paraview and try it? It would be the easiest to track any changes from 5.8 to 5.9.

---

<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: [April 21, 2021, 3:16am UTC](https://discourse.paraview.org/t/added-normal-vector-become-useless-from-paraview-5-9/6989/9 "2021-04-21T03:16:40Z")

</div>

@sharon It is not clear what you are doing here. Are you producing this dataset in a plugin or in an external piece of code and save it as a VTK file or a compatible file format? If so, could you share this file so we can check what is going on here?  
The fact that the sphere mesh is part of a multiblock might be an interseting lead here as some changes occured between 5.8 and 5.9.

---

<div class="post-metadata">

### Author: ![sharon](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@sharon](https://discourse.paraview.org/u/sharon)
#### Post date: [April 27, 2021, 12:52am UTC](https://discourse.paraview.org/t/added-normal-vector-become-useless-from-paraview-5-9/6989/10 "2021-04-27T00:52:17Z")

</div>

Hi Dan,  
Thank you for you reply and help!  
I am on a trip and sorry for replying late.  
My code is coupled with other part, it is not easy to split them as a whole that can run separately.  
However, after my local test, it seems **because of multiblock** reason:

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

[sphere.obj](https://discourse.paraview.org/uploads/short-url/tQsinDQHvK5Y69aUh4W10jWjTfn.obj) (237.2 KB) [line.obj](https://discourse.paraview.org/uploads/short-url/9hqBFyG9AV1HgpaQ4MmWVW7r7cY.obj) (155 Bytes)

---

<div class="post-metadata">

### Author: ![sharon](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@sharon](https://discourse.paraview.org/u/sharon)
#### Post date: [April 27, 2021, 12:55am UTC](https://discourse.paraview.org/t/added-normal-vector-become-useless-from-paraview-5-9/6989/11 "2021-04-27T00:55:42Z")

</div>

Hi Joachim,  
Please see my reply to Dan, you are right, it seems after group sphere and other data together as a multiblock dataset, then its normal vector become useless…which is not such behavior in paraview 5.8…

Sorry for my late reply because i am on a trip…

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.paraview.org/user_avatar/discourse.paraview.org/danlipsa/32/1563_2.png) [@danlipsa](https://discourse.paraview.org/u/danlipsa)
#### Post date: [April 27, 2021, 2:16pm UTC](https://discourse.paraview.org/t/added-normal-vector-become-useless-from-paraview-5-9/6989/12 "2021-04-27T14:16:59Z")

</div>

Hi Sharon,  
Indeed this seems to be a bug. I filed it here:

[https://gitlab.kitware.com/paraview/paraview/-/issues/20675](https://gitlab.kitware.com/paraview/paraview/-/issues/20675)

---

<div class="post-metadata">

### Author: ![sharon](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@sharon](https://discourse.paraview.org/u/sharon)
#### Post date: [April 28, 2021, 10:40am UTC](https://discourse.paraview.org/t/added-normal-vector-become-useless-from-paraview-5-9/6989/13 "2021-04-28T10:40:50Z")

</div>

Thank you so much, Dan!
