# How to get normals of a 2D line and to integrate along it

**URL:** <https://discourse.paraview.org/t/how-to-get-normals-of-a-2d-line-and-to-integrate-along-it/4389>\
**Category:** ParaView Support\
**Created:** [May 22, 2020, 4:30pm UTC](https://discourse.paraview.org/t/how-to-get-normals-of-a-2d-line-and-to-integrate-along-it/4389 "2020-05-22T16:30:31Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Rob777](https://discourse.paraview.org/user_avatar/discourse.paraview.org/rob777/32/3776_2.png) [@Rob777](https://discourse.paraview.org/u/Rob777)\
**Post date:** [May 27, 2020, 8:59am UTC](https://discourse.paraview.org/t/how-to-get-normals-of-a-2d-line-and-to-integrate-along-it/4389/9 "2020-05-27T08:59:58Z")

</div>

I’m not worried traversing the cells in a random order but I’m worried about getting consistent direction of normals. I just want to adopt a precautionary approach because I’ll have to use this script with different cases.  
I can think of a simple common case where the input mesh may be weird. Let’s say the surface of the airfoil is input with two different set of points (blocks or zones): the lower surface and the upper surface sets. The first is entered clockwise and the second is entered counter-clockwise. What do you think about it ? As I am writing I realize this may seems an exaggerated claim of robustness, but for publication-quality result robustness is the minimum.  
Thank you

---

_[View the full topic](https://discourse.paraview.org/t/how-to-get-normals-of-a-2d-line-and-to-integrate-along-it/4389)._
