To snap the 3D cursor to the surface of my object, I set the "Cursor Depth" to True in the interface user preferences. How can I know exactly to which face/vertice the cursor was snapped (in code)? Do I need to use object.closest_point_on_mesh?
object.closest_point_on_mesh(bpy.context.scene.cursor_location)
Or maybe this data is stored somewhere? Isn't is the whole purpose of Cursor Depth? Also, how can I know which object was it snapped to, in the case of multiple objects in the scene? Thanks!
object.closest_point_on_mesh
to cursor loc for scene mesh objects. $\endgroup$ – batFINGER Oct 20 '17 at 19:44