# Clean Polycurve

**URL:** <https://forum.dynamobim.com/t/clean-polycurve/16166>\
**Category:** Geometry\
**Created:** [November 2, 2017, 12:55am UTC](https://forum.dynamobim.com/t/clean-polycurve/16166 "2017-11-02T00:55:57Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Steven](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/steven/32/112504_2.png) [@Steven](https://forum.dynamobim.com/u/Steven)\
**Post date:** [November 2, 2017, 6:06pm UTC](https://forum.dynamobim.com/t/clean-polycurve/16166/3 "2017-11-02T18:06:06Z")

</div>

Ewan,

Thanks for the help. Lunchbox has a node _Points.SortPointsAlongCurve_ that work perfectly for me.I then did some vector magic to clean the points within the line. I created vectors from point to point then shifted the list by one and checked to see if the vectors were parallel. Vectors at corners are not.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/a/4aa6fc944f20ca2513793fb7df450076fca484a1.PNG) ![Capture2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/5/c56438d498be569193eda3d60b8346b618c09356.PNG) ![Capture3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/c/acec172528da30bde72c66ebba2b6bd5512385f9.PNG)

---

_[View the full topic](https://forum.dynamobim.com/t/clean-polycurve/16166)._
