Skip to content

Conversation

@SimonDanisch
Copy link
Member

  • inlines EarCut code to triangulate polygons with holes (wasn't possible to incorperate EarCut.jl directly due to circular dependency)
  • fixes triangulation + coordinates + decompose to correctly build & plot polygons

# if we just map over it, it won't infer the element type correctly!
int = typeof(ext)[]
foreach(x-> push!(int, LineString(x)), interior)
return Polygon(LineString(exterior), int)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return Polygon(ext, int)?

@SimonDanisch SimonDanisch merged commit 414d228 into master Aug 26, 2020
@SimonDanisch SimonDanisch deleted the sd/polygons branch August 26, 2020 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants