Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

Sort Points by x or y in C#

$
0
0

Hello all!

I am just beginning to learn the very basics of C#. I made an arbitrary curve and placed points on it at regular intervals, now I would like to sort these points and connect them with a polyline (such as in attached image). In this case I would like to sort by x… How do I deconstruct a point in C# and get their x components and sort?

Any ideas appreciated!

image

sort and connect pts by x.gh (6.2 KB)

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles