How to get coordinates of selected location in 3d viwer of open cascade.


We have created 3d viewer using open cascade. our objective is to create sketch on selected plane.
Planes are successfully created. But main problem is to get coordinates of selected point on that plane (This coordinates are used to generate point at that location).
here MouseEventArgs gives only pixelXY not the coordinates.

So please help to get coordinates of selected location in 3d viewer of open cascade.


Andrey BETENEV's picture


You can have a look at implementation of command vstate in DRAW, it can report list of objects under the current mouse position, and corresponding 3D point.

In the future, please post your questions related to usage of OCCT to the user's forum, as this one is intended for discussion of OCCT development.