So I am trying the get a shape to fill a gap created by other shapes in a C#.NET Winforms program. Shapes are created using e.Graphics paintevent args, e.g. e.Graphics.DrawEllipse() with x, y, width and height parameters.
So basically a simple case might be a large outer circle, with two smaller circles inside touching each other and the outside circumference. I want to be able to define a shape of the blue region in the image below.
I guess I would need to use some sort of Boolean operations such as subtract but difficult to get only the blue region as the area that isn't required outside the two circles isn't defined.
Once created, I would then need to be able to get properties of that region, such as cross-sectional area.
Any ideas anyone? Any help would be much appreciated.