How can I compute the area of intersection of two polygons with sympy?

爱⌒轻易说出口 提交于 2020-12-13 03:40:56

问题


How can I compute the area of intersection of two polygons with sympy?

Given are two polygons in sympy (sympy.geometry.polygon.Polygon)

I'm new to python and sympy, so I don't have any code to show. I tried learning it from documentation but I'm confused at the moment.

Can someone help?

Thanks in advance


回答1:


SymPy will calculate intersections of lines and points but does not calculate regions of overlap. I would recommend looking elsewhere.



来源:https://stackoverflow.com/questions/61415068/how-can-i-compute-the-area-of-intersection-of-two-polygons-with-sympy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!