Grasshopper

algorithmic modeling for Rhino

Hi!

I have a problem with the order of some intersection points. Its a grid from multiple curves and I need to put the intersections in a straight order. Does anyone know how to give the grid intersections numbers in reading direction starting from button left to top right?

Right now its numbered, but at some points its not continuously, I attached a picture where u can see the problem.

  

Hope that someone can help me out :)

Views: 832

Attachments:

Replies to This Discussion

Have you tried from the Vector menu Points-> Sort Points?

Hey Ethan!

Thanks for your reply! 

Also tried this already. Its not helping, I think I tried 3 different ways of numbering/sorting them but nothing seems to work. I just have no idea why its all of the sudden jumping.  

Does anybody know in what way gh is calculating, what are the parameters?  

Ben, could you post your script?

Just tried right now to rebuild it from what I had yesterday, now its totaly not continously at all...

Attachments:

Your points grouped according horizontal curves ( input B). Try to sort points according output Tb.

Ben, try this. I noticed you have a number of duplicates on the vertical curves which I deleted. I also incorporated Igor's observation and didn't flatten until the end.

Attachments:

Hey Ethan! It works almost perfect! Thank u so much!!  Just one weird thing is that its starting at the top horizontal curve and then goes from the button all way up. Is it possible to start at the button and then go further up?

Ben, please try now. I shifted the horizontal curve list by 1 but I don't believe I should have had to - I initially selected them in order, from the bottom up, but the top curve was being placed in the zeroth position and then numbering started again back down on the bottom. Shifting restored the proper order. Makes me feel a little ill.

Attachments:

Yes, its working! Thanks again!!! I was sitting so long on that numbering problem and couldnt figure it out...

Hi there! I´m pretty new to grasshopper and need a help on a ordering points question.

I have an hexagon with all the vertices duplicate (so that I get 12 points - 2 per line). The problem is that I need all of them to on a 0-1 alternated pattern. Can someone point me out a direction.

Thanks a lot!

Hi Thiago, I'm not exactly sure what it is you're looking for but is this close?

Attachments:

Right on the spot! Thank you so much! Very simple but since I dont know much about grasshopper I was having a hard time.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service