Grasshopper

algorithmic modeling for Rhino

Hello,

I have a number rectangles. I want to intersect them an get intersection lines from them. 

Them problem I have is that I do know how to solve self intersection problem.

For now there are two equal lists of curves that I intersect.

0 curve_0           0 curve_0 

1 curve_1           1 curve_1

2 curve_2           2 curve_2

...                      ...

n curve_n           n curve_n

But what I want to do is to intersect one each curves with a list that does not have that curve:

0 curve_0          

                         1 curve_1

                         2 curve_2

                         ...

                         n curve_n

////////////////////////////////////////

                         0 curve_0      

1 curve_1          

                         2 curve_2

                         ...

                         n curve_n

////////////////////////////////////////

                         0 curve_0      

                         1 curve_1 

                         2 curve_2  

                         ...

n curve_n

I do not know if that is possible at all without looping... 

Thank you in advance.

          

Views: 961

Replies to This Discussion

Hi Petras,

No, you do not have to use looping.
In case your original list of curves consists of unique, separate curves - try this:

Attachments:

Very neat.

Thanks:)

Nice approach, djordje... this might even help me to simplify some things I'm working on.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service