I want to create an entity of array of vertexes during game.

For instance I want to create an entity - triangular pyramid ( see http://www.mathsisfun.com/geometry/images/triangular-pyramid.png ) out of 4 points coordinates . How do I implement this?