It seems that just passing a list of triangles to Mesh
is not enough (note that we need GeometryBasics.Mesh
here, to create the geometric structure rather than plot it).
The following works for me:
using CairoMakie
using GeometryBasics
using FileIO
F = load("bunny.obj")
c, f = coordinates(F), faces(F)
F13 = GeometryBasics.Mesh(13*c, f)
fig = Figure(resolution = (1000, 700))
ax3d = Axis3(fig[1,1],
elevation = pi/2,
azimuth = 3*pi/2,
aspect = (1,1,1),
)
m = mesh!(ax3d, F13)
fig