To do 3d you need a bunch of poins in 3d. On which you apply rotations and translations.
The final step is to project those 3d points in 2d,projecting them on to a projection plane. (x,y,z)->(x1,y1).
And here's how you do it: 3D Projection
In conclusion : a Vector of Vector3d and transform.matrix3D methods.