Grasshopper

algorithmic modeling for Rhino

Hi there, 

i need some help: i have 16 curves here and i want to achieve the following: 

1. the should be patched randomly - so that a random number and a random order of the curves are patched (i kind of got it  - see attachment)

2. i want to copy the whole thing but all copies should be randomized. 

How can i do 2.? 

i just need an idea how to get this done!

THank you so much in advance!

Views: 1294

Attachments:

Replies to This Discussion

Patch??? Why?? You mean/should use Boundary Surfaces obviously.

Other than that you have a List that contains the closed planar polylines already. So create a series of random N numbers (ranging from 1 [or higher] to List.Count) and feed the Boundary with a variable amount of polylines > store the results (obviously) in a trimmed Surfaces DataTree with N branches and (also obviously) with variable amount of items.

That said in order to visualize what's happening you should exploit the trimmed surfaces tree on a per branch basis.

For instance:

BTW: Since branches are stacked each other you should:

(a) either exploit the tree on a per branch basis

(b) move branches

Attachments:

And this is rather more clear

Attachments:

Hey, i saw your answer a little bit too late, i solved the problem like this now:

pretty easy - but it works! 

Now the problem is (as everytime) how can i pack them into a variable rectangle? So when i have 1000 copies of the thing, i want it to be inside of a grid of lets say 10 by 100...!?

Greetings and thanks for your help!

So this is my approach... what the heck is going on there?

group and array..

Attachments:

Wooow!! You are a genius! 

Can i ask you where the polyline comes from? stupid question i know, but it is not referenced to a rhino file? so where is it comming form?

Cheers

Hey, there is one more question: how random is random in grasshopper?

I made  a list of 20x50 tiles and was able to immidiately find 4 pairs (and i am sure there are more...)

This is quite unlikely considering the 65538 possibilities...

Any opinion on that?

Thanks a lot!

the curves are from rhino but internise in gh (right click - internalise data), check this topic about random seed valuesand this too. I attach two approach, the first with a random pattern (maybe repeat) and the second with the 65538 (100% no repeat the pattern).

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service