How to get x y z coordinates over a canvas3d
I have simple program, where user can draw some predefined 3D shapes just by entering the values and clicked on it. And also user can draw 3d shapes just by choose positions on the canvas by click on it and then click on the draw button. But I can't get the x y z positions over the canvas3d.
It is possible to get these coordinates by clicking on the shapes, but I want the coordinates of all over the canvas, not only of the shapes.
So, how can achieve this?
Please help me. Thank you.