CombineGeometry between an Ellipse and a Line gett

2019-09-06 04:55发布

So I tested this code (intersection between two ellipses, look at the accepted answer), but if I change one of the ellipses to a line geometry (or path geometry representing a line) and it gives me no intersection. Does any one know why? Does combine geometry work on area of the geometry, and since lines have no area, it gives no intersection?

Since eventually I would want to see if the arbitrary path geometries intersect. I guess I would have to find a way to "pad" the path with some area, if there is no solution to just using a path?

1条回答
forever°为你锁心
2楼-- · 2019-09-06 05:53

For some reason I guess line geometry is not considered as a geometry, maybe just some sort of a stroke? Anyway, you need to do GetWidenedPathGeometry on your path and it would give you a geometry defined by the shape of the stroke.

查看更多
登录 后发表回答