Added simplified code for 3d circle detection