See section 13.7.1 for the triangle command in space.
The triangle command takes as arguments three points or a list of three points.
triangle returns and draws the triangle with the given vertices. Input:
Output: