Grasshopper

algorithmic modeling for Rhino

Hi everyone, 

I would like to generate an array of oriented 2 points boxes from a linear array. 
What I have managed so far is to manually produce some of the boxes as you can see on the attached screenshot. 
Instead of manually generating each of the boxes, I would like to generate all of them at once using two lists of points. I have identified what are the two lists of points I would need to generate, but I am not quite sure how to do this? I thought about path mapper, but I could not manage to make it work as I would like. So maybe you could help me :)

The two lists of points (one for each corner of the 2 points boxes) would be in terms of {branch path}(index) :
1. {A;B}(i)
    {A;B}(i+1)
    {A;B}(i+2)


2. {A+1;B+1}(i+1)

    {A+1;B+1}(i+2)
    {A+1;B+1}(i+3)

I hope this is clear enough.

Cheers

Views: 564

Attachments:

Replies to This Discussion

Hello Aymeric, 

for this you need the relative item component that take an element compared to another element...

I'm not sure if i'm very clear, hope the image and tiny code helped

Attachments:

Hi Nenov,
Thank you very much, that's perfect! This is just what I was looking for :)

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service