move visibility one key iteration to camera_dlg
move compute PCA normal to GlobalFun