Creating Jigsaw Piece with ProceduralMeshComponent

So I’d like to have some randomly generated jigsaw type puzzle pieces for part of my game. The issue I’m having is although I think I could generate the points for the vertices, with a complex shape like this I have no idea how to create the triangles for it. Is there some kind of algorithm for something like this?

Any help appreciated.