AngusJohnson / Clipper2

Polygon Clipping and Offsetting - C++, C# and Delphi
Boost Software License 1.0
1.52k stars 273 forks source link

[new API request] API using PolyTree for RectClip #845

Closed limingchina closed 5 months ago

limingchina commented 5 months ago

Discussed in https://github.com/AngusJohnson/Clipper2/discussions/784

Originally posted by **limingchina** February 28, 2024 So far RectClip only provides API to return `Paths`. Is it possible to provide an API so that it returns `PolyTree`? This way, if there are multiple polygons with holes, it would be easier to loop through them for further processing.
AngusJohnson commented 5 months ago

Feature requests should remain in Discussion.