Skip to content

Commit

Permalink
Wait a bit longer to convert the bounding box coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielVandH committed Aug 1, 2023
1 parent 3a18d85 commit 0ef0174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/basic_recipes/triplot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 0ef0174

Please sign in to comment.