How to draw a pyramid?

I!ve made the loft version for pyramid.
If you need another parapameters ,you can “stand” up any kind of triangle.

R,
A