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.

enter image description here

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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -