How to exclude objects outside a perimeter curve

Hi Friends,

I’m trying to exclude objects outside a perimeter curve, something like this:

The red circle is the perimeter curve, I’d like to be left with only the green circles and I’d like to ignore the outer black circle and the red perimeter circle itself.

Most examples I could find were involving the center point of the lines but that couldn’t work in my case since the center of the the outer black circle is also inside the red perimeter circle.

The circles are just for demonstration, the actual lines shapes could vary…

Any help would be appreciated.

Roy.

Use the mid point instead…

point_in_curve.gh (10.7 KB)

1 Like

Or end point. Fails to filter curves that intersect the perimeter though.

This works:



crv_in_crv_2022Oct25b.gh (9.6 KB)

2 Likes

in this particular case:

1 Like

Smart :wink:

haha! you are right! It is senseless.
To be more general, one could compare the radii with the distance to the center of the circle which is used as filter.

Thank you so much @martinsiegrist @Baris

I’ve used @Joseph_Oster solution and it works great for me.

Thank you Joseph :slight_smile: