new 3d algorithm. moved zc buttons to draw3d