Skip to content

Commit

Permalink
Pass uv coords directly to GB.Mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
juliohm committed Jan 15, 2025
1 parent 5b34c17 commit e625289
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ CoordRefSystems = "0.16"
DelaunayTriangulation = "1.0"
Distances = "0.10"
LinearAlgebra = "1.9"
Makie = "0.21, 0.22"
Makie = "0.22"
NearestNeighbors = "0.4"
Random = "1.9"
Rotations = "1.5.1"
Expand Down
2 changes: 1 addition & 1 deletion ext/grid.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function vizgridfallback!(plot, M, pdim, edim)

uv = Makie.@lift [Makie.Vec2f(v, 1 - u) for v in range(0, 1, $vdims[2]) for u in range(0, 1, $vdims[1])]

mesh = Makie.@lift GB.Mesh(Makie.meta($verts, uv=$uv), $quads)
mesh = Makie.@lift GB.Mesh($verts, $quads, uv=$uv)

Check warning on line 83 in ext/grid.jl

View check run for this annotation

Codecov / codecov/patch

ext/grid.jl#L83

Added line #L83 was not covered by tests

shading = edim == Val(3) ? Makie.FastShading : Makie.NoShading

Expand Down

0 comments on commit e625289

Please sign in to comment.