Open rafaqz opened 2 months ago
This is breaking MakieDraw.jl pretty badly now I've tried to switch things to Float64
.
Looks like a bad type constraint somewhere in convert_arguments
to me. Converting number type in a mesh should also not be a problem so I'll ping this to https://github.com/JuliaGeometry/GeometryBasics.jl/pull/173 as a goal there (ideally)...
Seems to me there is a if length(polys) > 0 ...
check somewhere that switches to Float32
, when it should instead look at the type
Lol, yes it is a problem
So we just need a method to get N and T from the Polygon type, and use 2 and Float32 if there really is no information available.
Seems like 2 lines of code if I'm not missing something...
Can you just pull those from eltype
or something?
Yes, just pass eltype(geometries)
to e.g. a _meshfromtype(::Type{<:Polygon{N,T})
method
I tried the basic fix but it looks like there are still issues elsewhere. Will be a bit longer, I think.
]st -m Makie
) v0.21.7]activate --temp; add Makie
)This errors because the mesh is using Float32:
Seems there is no way to set the type without passing in objects. So building up the geometries manually is not possible except in
Float32
.See: https://github.com/MakieOrg/MakieDraw.jl/issues/14