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

sagar1111's picture

Hello,

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.

Thanks.

abv's picture

See DRAW command vstate

Hello,

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.

Andrey

www.opencascade.com

Copyright 2011-2016
OPEN CASCADE SAS
Contact us