How to use Procedural Mesh to generate custom mesh

I want to use Procedural Mesh to generate custom meshes. I now have his vertices, but I don’t know how to determine Triangles and UV.

Do you have any cases or tutorials to share?