I have a triangular mesh encoded as
3 x M
vertices
matrix, whose each column represents vertex of 3d mesh object3 x N
faces
matrix, whose each column is a set of 3 column indices ofvetrices
that define a triangleN
length vector of labels (some number) for each of the faces
My question is how can to plot this mesh with labeled faces (meaning label should be located on the face itself, not as a legend on the side)?