# Point order problem in multiple geometries

**URL:** <https://discourse.mcneel.com/t/point-order-problem-in-multiple-geometries/115945>\
**Category:** Grasshopper\
**Tags:** windows, grasshopperrhino\
**Created:** [January 10, 2021, 11:12am UTC](https://discourse.mcneel.com/t/point-order-problem-in-multiple-geometries/115945 "2021-01-10T11:12:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aysege](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/aysege/32/274102_2.png) [@aysege](https://discourse.mcneel.com/u/aysege)\
**Post date:** [January 10, 2021, 11:12am UTC](https://discourse.mcneel.com/t/point-order-problem-in-multiple-geometries/115945/1 "2021-01-10T11:12:36Z")

</div>

I need your help in this situation.

I have these curves different length. This is just one.

 ![Geometry](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/7/c/6/7c6eb8e2fb7d26397ead395c78ecc1f129eb75c5.png)

I am dimensioning like this.

 ![dimension](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/1/6/b/16bf252d1ec1e67b3e76f7a2fb0c75bc02bb15e7.png)

It’s my grasshopper algorithm.

 ![grasshopper algorithm](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/4/8/3/483aa974a1140a20665af577f02912490c0aab43.png)

I can do whatever I want for one geometry but I wanna work with multiple geometries but this algorithm doesn’t work because of the different point order of every geometry.

When I worked with multiple geometries, I had this problem.

 ![problem](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/e/e/4/ee408da2def22e84366a95bfb6d3e85012ac66cb.png)

Then I realized that point orders are different

 ![point order](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/c/c/e/ccea386ce494b0e50e13ac1052ffe6df952fbb89.png)

How can I fix this problem?  
I wanna same point order every geometry. Please help me…

GH DEFINITION FILE:[point order problem for multiple geometry grasshopper definiton.gh](https://discourse.mcneel.com/uploads/short-url/96XT11DqVWs4WbZ7GrAXI81zEKi.gh) (6.0 KB)

RHINO FILE:[point order problem rhino.3dm](https://discourse.mcneel.com/uploads/short-url/s01sC2aMvGc635E1DmpO6N06ozV.3dm) (42.1 KB)

---

<div class="post-metadata">

**Author:** ![maje90](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/maje90/32/762888_2.png) [@maje90](https://discourse.mcneel.com/u/maje90)\
**Post date:** [January 10, 2021, 11:32am UTC](https://discourse.mcneel.com/t/point-order-problem-in-multiple-geometries/115945/2 "2021-01-10T11:32:22Z")

</div>

It’s really unlikely you’ll get any help if you don’t attach your definition (with meaninful data internalized).

Seems like you are having problems with trees data management, maybe some “flatten” and/or “graft” will solve for you…

---

<div class="post-metadata">

**Author:** ![aysege](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/aysege/32/274102_2.png) [@aysege](https://discourse.mcneel.com/u/aysege)\
**Post date:** [January 10, 2021, 11:55am UTC](https://discourse.mcneel.com/t/point-order-problem-in-multiple-geometries/115945/3 "2021-01-10T11:55:15Z")

</div>

Hi,

I am new here. Sorry, i forgot to add my files. I added now. You can find my files end of my first entry.

Every geometries which is in this file are closed curve. So i think, it’s not flatten problem. Why are point orders changing even i use “sort points along curve”? I really don’t understand.

I hope i can find a solve here.

---

<div class="post-metadata">

**Author:** ![HS\_Kim](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/hs_kim/32/473975_2.png) [@HS\_Kim](https://discourse.mcneel.com/u/HS_Kim)\
**Post date:** [January 10, 2021, 12:36pm UTC](https://discourse.mcneel.com/t/point-order-problem-in-multiple-geometries/115945/4 "2021-01-10T12:36:48Z")

</div>

You forgot to “graft” the “C”(Curve)input of Sort Along Curve.

 ![Canvas at 21;34;13](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/2/d/e/2def4065cfa72cd6a7fad2e506ae6f995422647a.png)  
[point order problem for multiple geometry grasshopper definiton\_re.gh](https://discourse.mcneel.com/uploads/short-url/1CrOp852YJq1hg1y7oPgqERLB6Z.gh) (12.0 KB)

---

<div class="post-metadata">

**Author:** ![maje90](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/maje90/32/762888_2.png) [@maje90](https://discourse.mcneel.com/u/maje90)\
**Post date:** [January 10, 2021, 2:07pm UTC](https://discourse.mcneel.com/t/point-order-problem-in-multiple-geometries/115945/5 "2021-01-10T14:07:00Z")

</div>

Your curves in rhino have all a different start point.  
You need to adjust the “seam” of your closed curves so your notations will works the same with every curve.  
Top is before, bottom is after adjusted seam.

 ![2021-01-10 15_02_51-Window](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/5/8/f/58f15419e11fa35209cbf1bcad5eea0121eeaebe.png)  
Use a different “far point” if you need a different start point.

Then you also need to fix curve direction, like HS\_Kim did.

Also see this:  
[uniformize curve dir + seam.gh](https://discourse.mcneel.com/uploads/short-url/1jNlkvuiiz3qdbglZJnVEgKKdim.gh) (8.0 KB)

---

<div class="post-metadata">

**Author:** ![aysege](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/aysege/32/274102_2.png) [@aysege](https://discourse.mcneel.com/u/aysege)\
**Post date:** [January 11, 2021, 6:09pm UTC](https://discourse.mcneel.com/t/point-order-problem-in-multiple-geometries/115945/6 "2021-01-11T18:09:59Z")

</div>

Two method of you is working!

Thank you for everything!

I have dimensioned my curves with “Graft”.
