FEM mesh 3D


using GeometryTypes

using Makie

cat = MakieGallery.loadasset("cat.obj")
vertices = decompose(Point3f0, cat)
faces = decompose(Face{3, Int}, cat)
coordinates = [vertices[i][j] for i = 1:length(vertices), j = 1:3]
connectivity = [faces[i][j] for i = 1:length(faces), j = 1:3]
mesh(
    coordinates, connectivity,
    color = rand(length(vertices))
)