Grasshopper

algorithmic modeling for Rhino

Hi! I try to check two lines whether they parallel or not. The first idea that comes into my head was check their intersection, but as you can see there when the lines slightly not parallels each other, there is two different point of intersection. Maybe i can use the fact that the points are different as the added condition, but how predictable this way is? Or maybe do you know better idea?

And by the way maybe they are parallel, i don't know because as figure out they have different length.

bug2.gh

Views: 5998

Replies to This Discussion

Hello, 

I was wondering how could you find parallel lines from different lists. So for example in one list there are 30 lines and on the other 60. I am trying to find the identical lines of one list to an other so the parallel methode could give a solution. 

Kind regards, 

Popi

As found out the best way to check lines for parallelism is to use vector Cross Product it returns 0 when the vector or lines are parallel.

TT Toolbox has Remove Duplicate line component which could be useful for testing identical lines.

Hi,

once I made this for planes, but it also takes lines.

Best,

Phillip

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service