gridap / GridapMakie.jl

Makie plotting recipes for Gridap
MIT License
34 stars 8 forks source link

Visualization of meshes with quads and general polytopes #33

Open paurierap opened 3 years ago

fverdugo commented 2 years ago

We started to investigate the extension to quads and hex with @Kevin-Mattheus-Moerman

preliminar code in branch: https://github.com/gridap/GridapMakie.jl/tree/quads_and_hexs

For the record, I paste here the test we used:

using Gridap
using Gridap.Geometry
using GridapMakie
using GLMakie
using Gridap.Visualization

domain = (0,1,0,1,0,1)
cell_nums = 10 .* (1,1,1)
model = CartesianDiscreteModel(domain,cell_nums)
Ω = Triangulation(model)
f = CellField(x->sin(π*(x[1]+x[2])),Ω)
fig = plot(Ω,f,strokewidth=2,strokecolor=:black,shading=true,transparency=true)
display(fig)

Pending issues:

Kevin-Mattheus-Moerman commented 8 months ago

@fverdugo @ericneiva @paurierap seeing this extremely late but I've done quadrilateral visualisations here: https://github.com/Kevin-Mattheus-Moerman/JuliaAdventures/blob/main/gridap_makie_visualisation_01.jl. It requires Makie's flexible poly function.