Display a custom colorbar with `Mesh3d` and `vertexcolor`

Hi @NicolasGensollen,

Welcome to Plotly Forum!
Please take a look at an answer to a question, regarding definition of a discrete custom colormap, here:
https://community.plotly.com/t/colors-for-discrete-ranges-in-heatmaps/7780/14
and let us know if it helps.