union operation slow #704
Replies: 3 comments
-
I suspect not, at least not without accepting a very imperfect union. The best way to manage this would be to create an orthogonal clipper, but that would of course be a lot more work. |
Beta Was this translation helpful? Give feedback.
-
boost.polygon has optimized datastructures for 90 or 45 degree edges. |
Beta Was this translation helpful? Give feedback.
-
I just give an special situation of small of less polygon union results in a large number of inner holes,They can be non-standard aligned edges, not orthogonal, also not a rectangle. |
Beta Was this translation helpful? Give feedback.
-
Hello, I ask a question again
The subjects is 10 horizontal rectangles and 10 vertical rectangles for examle.
Union operation is slowly when the number of horizontal and vertical rectangles increase to 1000.(my run time is 100s).
The union result is a polygon with single outline and a large number of holes(1000 * 1000), a lot of time is consumed in judge PointInPolygon.
Are there any improvement methods for this situation. thank you.
Beta Was this translation helpful? Give feedback.
All reactions