python - Shapely difference of completely overlapping shapes -
with python shapely can build polygons (here circle , rectangle) , built difference , sum of them described in shapely manual (http://toblerity.org/shapely/manual.html). "assertion error" when move rectangle position indicated in red.
edit / answer
sorry! found answer right after posting question: difference operation of course create 2 shapes. 1 can loop on them this:
result = box.difference(circle) shape in result: ax.add_patch(polygonpatch(shape))
the answer in edit @ bottom of question-post.
Comments
Post a Comment