Grasshopper

algorithmic modeling for Rhino

Delete curves IF intersecting with specific curve

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

Views: 6065

Attachments:

Replies to This Discussion

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. 

Attachments:

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. 

Using a point in curve component you can check wheter the mid-point of a curve is inside your boundary. 

Then again sift. 

Attachments:

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

Attachments:

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 ?

Attachments:

Thank you, the image seems perfect. I' ll check it out tomorrow and I'll come back. Thank you Ibrahim,

regards

Panos

It works great!Thanks again!

Panos

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