We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47f0e23 commit b672598Copy full SHA for b672598
ext/MeshesMakieExt.jl
@@ -12,6 +12,8 @@ using LinearAlgebra
12
using CoordRefSystems
13
using Colorfy
14
15
+using Unitful: numtype
16
+using Meshes: lentype
17
using CoordRefSystems: Projected
18
19
import TransformsBase as TB
ext/utils.jl
@@ -43,6 +43,6 @@ function asmakie(poly::Polygon)
43
end
44
45
46
-asmakie(p::Point) = Makie.Point{embeddim(p),Float32}(ustrip.(Tuple(to(p))))
+asmakie(p::Point) = Makie.Point{embeddim(p),numtype(lentype(p))}(ustrip.(Tuple(to(p))))
47
48
-asmakie(v::Vec) = Makie.Vec{length(v),Float32}(ustrip.(Tuple(v)))
+asmakie(v::Vec) = Makie.Vec{length(v),numtype(eltype(v))}(ustrip.(Tuple(v)))
0 commit comments