Hi, I’m trying to fit an array of circles inside a number of closed curves (without overflowing over the edges). The curves are given by a drawing.
I’m having trouble with culling the array. It’s either culling all the circles only to the first closed curve or intersecting all the circles with all the curves, which leaves some circles where they don’t belong.
I’ve attached the code I created.
I also seem to be having trouble correctly filling the boundaries with circles.
It would be very appreciated if someone could take a peek and direct me where I’m wrong.