Grasshopper

algorithmic modeling for Rhino

how to draw lines between each pair of points for a group of points

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)

Views: 5992

Replies to This Discussion

In this case, "Cull duplicatePt" method is not gonna work.

Try Kangaroo "Remove duplicate lines".

thanks, Kim! kangaroo v0.096 works.

Treesloth also has a List Compare component that lets you output unique pairs of items from a list.

Thanks for the tip, David.

Thank you very much, Kim!

I wonder why the interconnectlines component is not available in the latest Kangaroo 2.0 ... which provide a quite useful function.

Thank you very much, David!

However, when i drag and drop the treesloth_v0.1.gha onto GH canvas, the component group is not shown.

Can you kindly advise if I missed anything in terms of installation of treesloth?


Thank you again!

Treesloth download link:

http://www.grasshopper3d.com/profiles/blogs/tree-sloth-data-structu...

Dear David, appreciate if you can kindly advise on the installation issue related to treesloth. Thanks!

Use this one! All of the Treesloth components are located under the sets tab...I meant for them to be a bit invisible, simply integrated in with the other DataTree management tools.

Here's also a link to some of the features: http://www.bespokegeometry.com/2015/07/07/treesloth/

Also, if you right-click on the List Compare you can toggle between full comparison and unique pairs. If you choose unique pairs of points, you won't have to remove any duplicates.

Attachments:

Dear David,

Thank you very much for the link to your Treesloth toolset!

- Ji

Hi.

There is no other special tab for tree sloth plug-in.

You can fine tree sloth components on the "Sets" tab---> List, Sequence, Tree

Thanks, Kim!

But i don't see any treesloth components in the Sets tab after drag and drop the treesloth.gha file into GH canvas. (I've restated Rhino and GH)

Am i missing sth important here?

You should make sure to install the most latest version fr here.

And, also make sure to unblock the gha. assembly before installation and starting Rhino & GH.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service