3D Surface of a pyramid

82 Views Asked by At

I'm trying to plot an irregular frustum and then a question occurred to me: is it possible to represent the coordinate $z$ as a function of the cartesian coordinates $x,y$ for a pyramid face in order to create a surface? (Like a triangle in 3D space, but not necessarily parallel to any axis)

It may sound like a simple question but I could find nothing similar. Sorry if it is trivial, and thank you in advance!