Surface outside or within Surface

How would I go about determining if a surface is outside of another surface (by any distance)? What I have below is a rectangle and two circles. I’d like to be able to determine if the circle is completly within the rectangle. If any part of the surface is outside the rectangle, I’d like to flag it. Below is the start of my graph, but I don’t know where to go from here. Any help would be greatly appreciated!

1 Like

You could try something like this:

1 Like

I like this algorithm

1 Like

@David3 See if this works for you…

withinBoundary.dyn (26.7 KB)


Thank you Vikram!