Hello all, I've been seeking for an solutions but i'm stuck.
I'm generating a image of cells (circles, using ellipses) from a file where there is coordinates that i use (x,y,r). This function draws these cells (alot of them) to a image and it works great. But I would like to implement a function that looks if a cell overlaps another cell and if it does the cell shall be cut, both of them. I've included a nice little pic so you all can se what I mean:
[img]http://img339.imageshack.us/img339/8800/cellsmz9.png[/img]
What I think I have to do is to calculate where the cells edges is crossing eachother and then draw som sort of line between. But how do i do that? I should also mention that i use PIL for the moment but i'm flexible so i can change library if you have a better solution!
/flaerpen