algorithmic modeling for Rhino
may I ask how to draw lines between each pair of points for a group of points?
Suppose I have 10 random points, the total number of lines between each point pair should be (10+1)*10/2 = 55
Thanks!
(correction: the number of lines between each pair of points for N number of points is: N*(N-1)/2)
Tags:
I've just read through this whole discussion and either I'm missing something, or this is all being made a lot more complicated than it needs to be!
Just use the cross reference component as above, but set to 'Lower triangular (strict)'. That's all you need.
The 'interconnect points' in Kangaroo was added before this option on cross reference was available - it is just doing the same thing and is redundant now. Also, the code inside it is essentially the same 2 lines as Tom posted below.
and here's an ancient post with some images of data matching options:
http://www.grasshopper3d.com/xn/detail/2985220:Comment:50861
Thank you, Daniel!
I revised the workflow as suggested (see GH file attached).
It seems the Kangaroo component is the fastest (< 10ms), considering the overall time used for all steps for each approach. I wonder what is causing the performance difference between Tom's script and the Kangaroo component if they use the same code.
thank you very much, Hyungsoon, for your great suggestion!
Already mentioned, there are "0" length lines which you cannot see.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by