JuliaGeometry / GeometryTypes.jl

Geometry types for Julia
Other
67 stars 41 forks source link

Polygon type? #124

Open goretkin opened 6 years ago

goretkin commented 6 years ago

Should there be an explicit Polygon type? Right now the code uses AbstractArray{Point} and Vector{Point} (in only one place each) to describe a Polygon.

SimonDanisch commented 6 years ago

Yes, that would be appreciated! We had some discussions about this, but never came to a conclusion, since people seem to have very different needs for polygons. I was thinking to make Vector{Vector{Point}} our first polygon type for now, since that's what e.g. https://github.com/JuliaGeometry/EarCut.jl expects right now, and I wish to integrate that better into the geometry infrastructure! But feel free to go ahead with any polygon type you want! We are pretty undecided on the exact definition, so it's a bit first come, first serve kind of situation ;)