Grasshopper

algorithmic modeling for Rhino

Hi,

I want to craft a data tree from an existing data tree based on a specific pattern (in this case I wand to do what "Diamond Grid" component does in "Paneling Tools" plug-in.

Let's say we have tree with A,B,C,D as branches and 10 items in each of them. The goal is to have an algorithm that gets {C4} and sends out {C3,D4,C5,B4}. Please have a look at the image attached.

This is something that I can achieve on a tool like Processing, but not able to do in Grasshopper. I would appreciate it if someone give me instructions.

Regards,

Mani

Views: 383

Attachments:

Replies to This Discussion

It's probably easiest to use the RelativeItem component. Unfortunately you'll need one for each of the four points, and there may be issues where the pattern terminates (should it wrap? clip? be jagged?)

Thanks David.

Where the pattern ends we should have branches with less than 4 items. I guess that would be a "clip".

You could look at the problem a little differently and get diamonds the way I did a week ago, using 'Isotrim' to split a surface, then use mid-points of the subsurfaces' edges to make the diamonds:

http://www.grasshopper3d.com/xn/detail/2985220:Comment:1436596

Attachments:

Joseph,

Thanks for you comment!

That's a good approach but not enough control when you have a irregular curved surface.

I know that I mentioned Diamond Grid. But this is a question that I have about data structure in general, to create arrays from existing ones based on a specific pattern.

I know all the cool kids are using Relative Item, which I highly recommend, but here is another approach - assuming the lists are all of the same length.

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