% a polytope is defined by vertices % and faces figure view(3), grid v = [ 0 0 0; 1 1 0; 1 -1 0; 1 0 -1; 1 0 1; 1 0 0]; f = [ 1 2 6; 1 6 3; 1 4 6; 1 6 5] patch('vertices',v,'faces',f,'facecolor','g');