3D rectangle selection - draw and calculate box

Calculate selecetion box corners and draw the box.