title: How to get the (x,y,z) coordinates of a 3D model of every click in Python?
body: <p>The input to the program is an <code>obj</code> file of the form</p>
  
  <pre><code># write_obj (c) 
  g
  # object curobj to come
  # 23372 vertex
  v -63.022500 20.254900 -28.502400
  v -63.022500 19.742100 -28.437200
  ...
  ...
  vt -1.000000 -1.000000
  vt -1.000000 -1.000000
  ...
  ...
  f 5131/5131 5132/5132 5271/5271
  f 5130/5130 5270/5270 5269/5269
  ...
  ...
  </code></pre>
  
  <p>This would generate a 3D model in applications like Blender and Mayavi. Although these frameworks can render these images, there is no simple way to get the 3D coordinates on mouse click event.</p>
  
  <p>Is there a simple program in Mayavi (or Blender) to get the (x,y,z) coordinates of the point/vertex on which the mouse is clicked?</p>