Undone--Draw a pyramid with outline, rotate automatically

Draw a pyramid by three triangles and can automatically rotate around
(1,0,0), the outline be draw also using red

Undone--the pyramid can should be rotate manually around any directions.

Undone--the pyramid be draw by 12 points now, but actually 4 points is
what I only want to use