Grasshopper

algorithmic modeling for Rhino

Hello all, thanks the whole community for valuable information and advice that anyone can find around here. This is my first post and I have to say I am not very experienced with GH.

So my problem is simple, I have a number of straight horizontal curves and a point in between them. What I want to do is as I move the point around, the curves that are closer are pushed away on one axis (for the beginning). If you open the attached files you will understand immediately what I mean.

I managed to do this, in a way that seems quite complex to me, so I could guess there is another way of doing it :P

Moreover my way has a number of limitations, which I would like to see if I could overcome by modifying my GH or by using another way. 

The limitations are mainly because of the area A in my GH, where the closest points to my Pt, are split in two lists, one that have a bigger Y value and one that have a smaller Y value than my Pt. This was done because I needed to move the points of the two lists in the opposite directions of the Y axis. However this takes as default that my point is always closer to the upper Curve, when positioned between two. 

The second limitation is when the Pt goes close to the edges (on the Y axis), because of the way I choose the points to be replaced in my original list.

Thanks!

Views: 2078

Attachments:

Replies to This Discussion

Try this:

Attachments:

Thanks djordje, I will work through this and if I have any questions I will come back.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service