From 0ef017491d2fc1f84bd37b8a059fef6d510511cc Mon Sep 17 00:00:00 2001 From: DanielVandH Date: Tue, 1 Aug 2023 20:16:11 +1000 Subject: [PATCH] Wait a bit longer to convert the bounding box coordinates --- src/basic_recipes/triplot.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/basic_recipes/triplot.jl b/src/basic_recipes/triplot.jl index 3b60ca70722..eba10b2a269 100644 --- a/src/basic_recipes/triplot.jl +++ b/src/basic_recipes/triplot.jl @@ -119,6 +119,7 @@ function get_triangulation_ghost_edges!(ghost_edges, extent, tri, bounding_box) else a, b, c, d = bounding_box end + a, b, c, d = map(Float64, (a, b, c, d)) @assert a < b && c < d "Bounding box must be of the form (xmin, xmax, ymin, ymax)." for e in DelTri.each_ghost_edge(tri) u, v = DelTri.edge_indices(e) @@ -190,8 +191,7 @@ function Makie.plot!(p::Triplot) end map(p.show_ghost_edges, p.ghost_edge_extension_factor, ghost_edges_2f, p.bounding_box) do sge, extent, ge, bbox - _bbox = !isnothing(bbox) ? map(Float64, bbox) : bbox - return sge && get_triangulation_ghost_edges!(ge, extent, tri, _bbox) + return sge && get_triangulation_ghost_edges!(ge, extent, tri, bbox) end map(p.show_convex_hull, convex_hull_2f) do sch, ch return sch && get_triangulation_convex_hull!(ch, tri)