MATLAB: Convert 3D polygon into homogeneous matrix

3d polygon

Hi. I have defined a 3D polygon creating a vertice and a face matrix to use the function Patch. Now i would like to know: how do i transform my 3D polygon in an homogeneous matrix.
Any clues ?
Thanks for the help.

Best Answer

The matrix "vert" in your code is your homogenous matrix for your purposes described in your comment.