Grasshopper

algorithmic modeling for Rhino

I've got a challenge for the Coffe + Grasshopper comunity:
can you figure out how to divide a list into shorter equal lists without plugins, scripts or functions?
1.- Only native GH components allowed.

2.- The number of resulting lists must be variable, you should be able to control it via sliders

3.- Your submission must not be clustered, the use of it on this post is to prevent cheating.

[Complex Geometry]
www.complexgeometry.com
http://facebook.com/complexgeometry

Views: 2004

Replies to This Discussion

Here is a similar way I believe I learned from Danny Boyes, or possibly someone else a long time ago, don't really remember, this doesn't include odd lists. Typically now I use tree8.

by item per list works odd and even, I assume there is some logic gate needed for the other to work on odd, I'm sure someone else already knows the answer.

Much more complicated than Michael's, but works 100% (hopefuly ;)). It works like this :

(we have i.e. 70 items to sort in 6 groups) 

1. Creates 6 branches with 11 items

2. Adds one branch with 4 items (70-66 = 4)

Attachments:
nice one.

Nice, i'll upload my solution later, but it's beautiful to see how other minds approach to the same problem.

Ok, given than the last one seem to be really easy i got this one:

given a set of irregular lists(in this case i used a group of exploded polylines) after been modified in a way that gives you back a flattened list.
need to go back to the original set of lists (assuming the modification did not change the order of the elements)
No plugins
No Script
No functions
just nice GH native components.

Attachments:

Click to enlarge image.

EDIT : shift is set to -1

Similar to what I was thinking, I knew this was actually easier than the previous problem because we have to original data structure to "sample". The tough part is not having the original structure to use. Still have no Gh at the moment but I think your solution is pretty optimal. Nice one, as expected :)

Great solution, now i think next step is what Michael Pryor is proposing, not use of original data.

IMHO its not possible... (like in nature - if information is lost, nothing can be done).

There is a little "cheat" for this - code information about data tree in data (so data has information about its "position"). 

So I did here : http://www.grasshopper3d.com/forum/topics/how-can-i-sort-in-two-dim... (point number 7).

This cant (?) be done with geometry, but with values (i.e. indices) yes.

I will show how to do it later, now I have a big deadline approaching :)

heres an interesting one, how to get that same
data structure only using the flattened list. So only using output from flatten.

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