Grasshopper

algorithmic modeling for Rhino

Hello!
I´m starting with grasshopper. I have a very simple problem.

 I have a definition and have 2 groups of lines. So, i have some intersections between the lines. I want the lines of the first group containing an intersection with the lines of the second group to dissappear. The lines of the second group are not important.The lines that are crossing should disappear.

I´ve worked about it trough getting the intersection points, but I can't select the lines that contains this points.

I have no more ideas. So if you have I will thank you a lot!

Victoria

Views: 682

Replies to This Discussion

That might be a little tricky for starting. But its not hard with the components there are avaible in GH. Theres a component called SubCurve that asks for input curves and a Domain. That's the interesting and maybe complicated part. The Domain of a curve (lines are an especific group of curves) can be find by the Domain component. From the intersection component you used, you get as output "t" parameters that mean the point on the curve's domain where the intersection happens.

If a curve has a domain of 0 to 9.38 for example, and the intersection point (t parameter) is 3.22 you can decide what part of the curve you want to keep by setting the domain from 0 to 3.22 or from 3.22 to 9.38. (from the start of the curve to the intersection point or from the intersection point to the end of the domain of the curve, its end). That works for just one curve and multiple, but it can be a little tricky if you have a lot of curves, if the curves have different directions, etc..

If you need more help, I'll make a simple definition for you to try

Have fun
hello!
first of all thank you so much for your quick answer.
But I will need some more help. I tried to get the result this way but I didn´t achieve it. And it was my fault because I tried to simplify the problem and it produces missunderstandings. So I will use some images.
i have a Voronoy net.

When the distance between the points is smaller than X, I want the Voronoy poligons to disappear. so I made lines to link the points with smaller distances than X between them (with Proximity 2d)


i have too many lines and points, and maybe in other steps they can move, so i can´t correct them one by one, and the complete voronoi poligon can disappear complete without problem when it crosses the distance lines (I dont need to keep a part of it).

Thank you so much for your help. I hope it's possible.
Victoria

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service