Grasshopper

algorithmic modeling for Rhino

can i split a list automatically if the point direction change? Don't want copy+paste

Hey, 

i have to move points from a list in the direction of a line.

the problem is that the lines have different directions. 

Stand1

I have 4 lines and 10 points, because of that it dosent work the right way.

Line no1 and no.2 is the right way for point 0-6

Line no.3 for 7-8

Line no4 for 9-10

Stand 1-3

in the hole project i have 14 lines and 65 points,No number is identical, there is no pattern.

And if i change the beam distance i get more or less points, the lines stay at 14.

Is there a way to count it automatically, i don't want to do it with copy and paste and counting.  

solution1 - Maybe that the point knows on which line it is located, or the nearest line.

solution2 - point 0 reads the movement to point 1 if it is the same direction of movement of a line it fits. Line1 = (x+0 y+1 z+1)  = point 0 (x+0 y+1 z+1)

point 1 is (x+1 y+0 z-1) so it changes the direction. (i dont know if you can understand my thinking :D)

Views: 389

Attachments:

Replies to This Discussion

i found a solution for the first problem with Partition List. Now the point moves on his line!
I have to count which point is on which line. And write it down in a panel as Groups.
First Group Line 0+1 ....... (0|2)
First Group Points 0+1+2+3+4+5+6......(0|7)  
Maybee someone knows a solution that i dont have to count it, grasshopper knows which point on which line is. 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service