algorithmic modeling for Rhino
Hello to everybody,
any help would be much appreciated!
I have a specific curve (yellow in the preview), divided into 6 segments. Now, I want to connect all points(pink) with each other as long as the connecting curves (blue) do not intersect with the main curve. I seem to have stuck at a list issue since I cannot find a way to extract all non-intersecting lines. Any ideas? Thank you all for your time.
panagiotis
Tags:
On the curve / curve intersection node you see the output called tA.
It shows you intersection parameters on the first curve, your connections.
If there are more than two intersections, then you don't want the curve.
Two intersections because it counts end points.
I used a list length component and then a larger than component to sift the curves.
Thank you Martin, I have been starring at it all day!
Please if you would be so kind to upload the .gh because I am not too familiar with the symbols.
Plus, there is a connection outside the main curve, where the rule of 'over two connections' doesn' t stand. Is there a workaround for that too, so all curves remain within the main yellow curve? Thanks once again!
by selecting upper strict or lower strict you only get the lines in between different points. Otherwise it creates invalid lines with length 0.00
You could also use the interconnect points component from the old kangaroo tab.
Both ways you end up with 15 lines and then sifted to 8 lines not intersecting.
Thank you so much Martin! You are amazing, can't thank you enough!
I shall look a bit more into it because it is still a bit tricky for me, thanks for both the solution and the insight!
panagiotis
This worked like a charm Martin!Thank you!
I have just encountered another similar issue, when having obstacles (both line like and curve like) within the primary shape. I cannot seem to exclude the lines intersecting the obstacles. Is there something obvious I am missing?
Thank you all for you input.
Panos
I think that you just need to replicate what was done by Martin, but this time you need to trim the tA parameter list before testing the intersection (in order to get back to the same list structure)
Is this what you want ?
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by