Basic 3D
Project a Cube
Project all eight cube vertices with one exact perspective divide and connect the projected edges.
project-a-cube
A cube projection repeats the same perspective divide for each vertex, then draws the edges between the projected points.