How do you use `Plots.jl`'s `mesh3d` in place of matplotlib's `plot_trisurf`?

Hello everyone,

I’m trying to use a mesh3d as a drop in for plot_trisurf, but am struggling to get the same functionality. The difference looks like this:

plot_trisurf(X, Y, Z)

mesh3d(X, Y, Z, connections=(i, j, k))

And I’m not quite clear on where the connections tuple needs to come from. All the examples I see use hard coded values - but is there a way to autogenerate this to use mesh3d?

Relevant links: