Grasshopper

algorithmic modeling for Rhino

Hi All,

I am having a recurring problem that I need help with.  

I am trying to set up connections between these two curves that have a minimum spacing.  Right now, the spacing is set from centerline to centerline of each piece.  When the angles get too steep, the pieces get too close to each other.  I would like the minimum spacing to be set as the perpendicular distance between each rectangle, so each spacing would need to be related to angle of the piece before.  I think it might be a scripting issue.  

I've attached a two screenshots and a simplified version of the definition.

Thanks everyone!

-Joe

Views: 753

Attachments:

Replies to This Discussion

a quick fix is rebuilding the input curves so the division its more uniform or using another division type (by distance or length).

also you can use a base line, divide it with perpendicular frames and then intersect with your inputs curves to find the points... if you use a line not a curve, all the connections between points are going to be parallels (that's will happens if you use a perpendicular spacing between connections)...

dividing by distance doesn't actually help in the situation shown above - that only manages the distance from end point to end point, not the (roughly) perpendicular distance between curves.

Well, I have a sort of solution, but it's a hack. Basically I calculate waaaaaay more curves along the way than necessary, and then cycle through them in a script, selecting each time the next one whose closest distance to the last one is larger than the specified spacing. There are probably smarter scripted ways, but this was the best I could come up with quickly. 

Also, I'm still calculating by centerline, but if you care about the thickness of your rectangle just add that on to the spacing distance. 

Hope this helps!

Andrew

Attachments:

Great thanks Andrew!  I haven't tried it yet but your image looks like it will work like I need it to.

 

 

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