Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualization of meshes with quads and general polytopes #33

Open
paurierap opened this issue Aug 22, 2021 · 2 comments
Open

Visualization of meshes with quads and general polytopes #33

paurierap opened this issue Aug 22, 2021 · 2 comments

Comments

@paurierap
Copy link
Collaborator

No description provided.

@fverdugo
Copy link
Member

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:

  • Check that we have not destroyed the code for tris/tets
  • Problems with shadings
  • Simplification of function to_face_grid_with_map
  • GeometryBasics.normal_mesh seems to convert to tris/tets

@Kevin-Mattheus-Moerman
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants