I tried hard but still can't get this piece of code work.
I was trying to modified a code by Tobias Schwinn regarding circle filling in a predefined poly line. Here is
my pseudo code:
define a closed polyline
generate many dots randomly inside it
create circles based on following requests:
1. circle can't intersect with polyline edge
2. circle can't intersect with each other
currently, my problem is there are some circles still can intersect with other, see attached. I really can't find where the problem is.
So I surrender, the glory is yours if you can find. Much thx.
![](https://storage.ning.com/topology/rest/1.0/file/get/2654687794?profile=original)
![](https://storage.ning.com/topology/rest/1.0/file/get/2654687895?profile=original)