sad to say though but the rotation part was to hard to implement for me so maybe someone else can try it.I can not take credit for this because if was taken from the source of Edit3D for TI-89, same with my converted BASIC stuff if was converted from that source file. Also another thing is if you wanted to draw faces then you would have to bubble sort the z axis from lowest to biggest, then the one with the most z value would get it's face drawn in first and so on. SO basically that would be a cover-up routine with the lowest visible solid areas being visible.

This rotation for all axes:

Camera.y = dist * sin(ang_x) ;

Camera.z = dist * cos(ang_x) ;

Camera.z = Camera.z * cos(ang_y) ;

Camera.x = dist * cos(ang_x) ;

Camera.x = Camera.x * sin(ang_y);

//Those are in LCAM, LCAM(1=camera.x and so on

Work_CUBE.z = - Work_CUBE.y * sin(ang_x) + Work_CUBE.z * cos(ang_x)

Work_CUBE.y = Work_CUBE.y * cos(ang_x) + intermediate * sin(ang_x)

//rotation around the y axis

Work_CUBE.z = - Work_CUBE.y * sin(ang_x) + Work_CUBE.z * cos(ang_x)

Work_CUBE.y = Work_CUBE.y * cos(ang_x) + intermediate * sin(ang_x)

//rotation around the x axis

Work_CUBE.x = Work_CUBE.x * cos(ang_z) - Work_CUBE.y * sin(ang_z)

Work_CUBE.y = Work_CUBE.y * cos(ang_z) + intermediate * sin(ang_z)

//rotation around the z axis