2D and 3D machine control systems