Grasshopper

algorithmic modeling for Rhino

Hi, I have a group of  lines intersecting a large group of curves. My goal is that each line is deforming to avoid the curves and pass between them. The method I try  is:

- First to select the shorter parts of each intersected curve.

- Then to divide each line in a number of points

- To project those points to the curves

I was able to do it just between one line and several curves. But my definition is not working with the groups of lines and curves. As is possible to see at the image, I don't get projected all the points that should be projected, just some of them.

I can't flatten the points tree because there are so many points that my computer is not able to work it out.

Could someone help me?

Thank you in advance

Views: 2664

Attachments:

Replies to This Discussion

Hi there :)

I've attached a file that I think does what you're looking for, in a couple of ways.

I've changed the logic a bit to try to lighten the process...by sticking to curve intersections instead of surface intersections, you can make it run a bit faster.

But this also is kind of a classic example of where data structure quickly becomes really problematic in the visual scripting interface. Once you start cross-referencing multiple nested lists, there tends to be a lot of issues surrounding duplication and sorting (as you can see from the definition) that you can cut through quite quickly by just coding it directly. Directly coding it also can really speed up the computation time.

Attachments:

Hi David!

Thank you very very much! I will try now to decipher what you did :)

This is a work for my thesis, I will write you in my acknowledgements :)

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