Grasshopper

algorithmic modeling for Rhino

I just started using Grasshopper so apologize for being naive.

I have imported a network from a csv file and it's composed of links and points. Now I need to:

1) Create spheres, with different sizes, for each of the 10000 points of the network. So the point should become the x-y-z center of each sphere.

2) Give solidity to the links, as at moment they are just a tons of empty invisible lines.

I believe I need to convert them to small cylinders.


Thank you in advance,
Luis

Views: 5056

Replies to This Discussion

First thing that comes in mind would be to use sphere component (surface|Primitive|sphere) for the ... sphere (simple isn't it !) and pipe to give thickness to your lines.

I suggest you select "only draw wireframe geometry" on the left under the component table as 10000 sphere and pipe may be hard to handle for your computer...

How can i distribute the spheres equally in a given space?

And moreover the position is defined/imported from a CSV file.

Thank you

Luis

I thought you already had the center point and just had to plug it to the sphere component... 

What do you want to distribute if the positions is already defined?

Did you import and sort your point already ?

Let me explain better,

I have already imported and sorted the point, right,

and I want to plug the sphere on the points.

After this i want be able to move some of the point/spheres withput breaking the newtwork.

Tx

Luis

Ok, what are the constraints for moving points (repulsion?). Seems that' you'll need recursivity like hoopsnake (if you move one point from another, you'll have to check its distance with the neighbours and so on) or at least kangaroo's sphere packing (you could also take a look at every agents or swarm like plugins). 

What in the csv defines a lines, how are they sorted?

I think you'll have to do all your transformation by distance to other points and then apply the spheres and the lines.

... unfortunatly, my pc run an old version of gh and things get really slow... i'll try to upload something friday (national holiday tomorrow, srry) with kangaroo if no one does until (if you want to explore it by yourself, i suggest you try p-law )

Sylvain.

Here we are !

Somes tests with kangaroo (you'll find it there : http://www.food4rhino.com/project/kangaroo). You have to dble click the first boolean toggle to run the def. 

You may not need all the cutoff stuff. I let you play with it (remove forces, add other according to your needs).

Faster and easier solution may exist but that's the way i'll do it... :)

edit : works with 12 points like a charm, still fluid with 100, start crying with 1000... things may explodes at 10000 !

re-edit : kangaroo is not actually in cause, the slowing comes from the find similar members, there may be another way... you can also delete it and une a standard cutoff value for all your points...

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service