google / s2geometry

Computational geometry and spatial indexing on the sphere
http://s2geometry.io/
Apache License 2.0
2.32k stars 308 forks source link

Cutting polygon with holes to without #233

Closed pythonmobile closed 9 months ago

pythonmobile commented 2 years ago

Is there a function that takes a polygon with holes as input and outpus polygons without holes? (preferably with a small number of diagonals added)

jmr commented 2 years ago

No, because S2 doesn't need that. Is there some format that doesn't understand holes that you need this for?