# Sort points on line in PolyData

**URL:** https://discourse.vtk.org/t/sort-points-on-line-in-polydata/3851
**Category:** Support
**Created:** [July 24, 2020, 9:14pm UTC](https://discourse.vtk.org/t/sort-points-on-line-in-polydata/3851 "2020-07-24T21:14:20Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![PBrockmann](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pbrockmann/32/524_2.png) [@PBrockmann](https://discourse.vtk.org/u/PBrockmann)
#### Post date: [April 6, 2023, 12:52pm UTC](https://discourse.vtk.org/t/sort-points-on-line-in-polydata/3851/4 "2023-04-06T12:52:25Z")

</div>

Hi,

Indeed I haven’t been able to notice a difference when strip.SetJoinContiguousSegments() is set to True.

How to sort anti-clockwise points from a polydata ?

You will see that points 16, 17, 18 are not ordered correctly if you expect an anti-clockwise sort.

```auto
from vedo import *

! wget -q -nc https://thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds/brocksce/tmp/poly_02.vtk

g = load('poly_02.vtk')

line = Line(g.points())
labels = line.labels2d(c="yellow4", scale=0.7)
show(line, labels, axes=0, interactive=True, zoom=1, roll=90, azimuth=-90, elevation=0)

```

![image](https://discourse.vtk.org/uploads/default/original/2X/f/f1871e3405bfceafa130127302733294ca83f14b.png)

---

_[View the full topic](https://discourse.vtk.org/t/sort-points-on-line-in-polydata/3851)._
