Grasshopper

algorithmic modeling for Rhino

Hi!

I'm trying to do extend a group of point to different surfaces or planes, after a long afternoon i finally get it with a not very good method... (i tried before with better ways, but with no result)

My question is, is there a better way to do connect points with different planes?

I'm still learning and it will be very useful for me learn about easiest methods to do this kind of things :)

Views: 797

Attachments:

Replies to This Discussion

after looking at the attached .gh, I'm not quite sure what you want..
(versus what was just part of the 'bad solution')
a quick msPaint and text explanation might help more?

Sure! 

I have a structure of diagonal structure of pilars and a collection of platforms. I want to divide the diagonals in one direction and create lines parallel to the other diagonal (light red) of each one extended to an offset plane (black) of the platforms. This line would be the structure of the handrail of the platforms. My problem is that i have different platforms and diagonal with different angles.

I separate every platform with list item and extrude each one, then i selected the points inside and project into the up plane and join the points to have this lines... My worry is about the separate process of each element. I can't stop thinking that i could do by order my list well...

I hope that this clarify my question

Thanks!

Main thing you messed up that I saw in the initial .gh was that you were using a single light-red vector for everything.

You didn't internalize all the breps so don't forget to replace with your own.

DIAGO 01 and 02 should have the same number of curves,
I put in a [Shift List] as a temporary measure, delete it after.

Also, I noticed that the input curves wiggle in the x-axis. Is that on purpose?

Slider at the right for if you want lines to go through the rails or not (for multiple collisions)

hopefully what you wanted. Tree structure is a bit complex but couldn't get around it as multiple-collisions were a concern.

Attachments:

Thanks for your answer Vongsawat! 

I did as you say and now the code looks much better. I have only one more question. Is about the multiple collisions, i want that lines go through the platforms to the up level, if i do as you say (changing the list items) some points are up and other are down, mi question is: How can i order items on the list to have upper points in one and down points in 0?

I attached the archive with the other errors corrected. By the way, wiggle in x-axis is normal, is part of the original idea.

Thank you very much y learn a lot with this code.

Attachments:

'END OF SUBSTRUCTURE' has to be ordered, either manually select them in order or sort by height. if ordered from lowest first, 0=1st collision, 1=2nd collision, 2=3rd collision etc.

Also, just noticed that the list logic was failing if there were more than 2 collisions. duplicated data with [Longest List] to make sure [List Item] doesn't loop in a wrong way.

and no problem, glad you learned :)

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service