JuliaGeometry / GeometryBasics.jl

Basic Geometry Types
MIT License
164 stars 54 forks source link

area and MetaFree fixes #125

Closed knuesel closed 3 years ago

knuesel commented 3 years ago

Some fixes for area following discussion in #121

There's also a broken area test for a vector of PointMeta{3}. I couldn't make it work because it needs zero(typeof(PointMeta(0,0,0; a=1)) and it's not clear how to implement that: How should we make the zero value of the metadata?

The PR includes a fix for a related bug: MetaFree(typeof(PointMeta(0,0,0; a=1)) used to return 3. Now it returns Point{3,Int64}, I think that's what was intended? (the fix isn't enough to make area work but I included it in the PR since it took me a while to figure out).

I also added Julia 1.3 in the CI test matrix, to avoid a repeat of #123 😊

SimonDanisch commented 3 years ago

Thank you! :)