I want to plot 3D triangular mesh in Julia. “JuliaPlots/Makie.jl” package looks good for this purposes and I visited the “JuliaPlots/MakieGallery.jl/blob/master/examples/examples3d.jl” for some examples. And probably the code
mesh1 = normal_mesh(geometry)
construct a mesh. So I tried to expect what is the “normal_mesh” method ans see…
# 2 methods for generic function "normal_mesh":
[1] normal_mesh(primitive::Union{AbstractPolygon{N,T}, GeometryPrimitive{N,T}, AbstractArray{var"#s21",1} where var"#s21"<:AbstractPoint{N,T}, GeometryBasics.Mesh{N,T,Element,V} where V<:AbstractArray{Element,1} where Element<:Polytope{N,T}, Tesselation{N,T,Primitive,NGrid} where NGrid where Primitive} where T; nvertices) where N in GeometryBasics
For me it is difficult to understand all this types hierarchy. Typically for 3D mesh I used only two flat arrays with vertices and triangles. Do we have something similar in Julia or I need to construct a mesh like in the example with full hierarchy of types?