Sat, 06/27/2020 - 11:37
Forums:
I can get (x, y, z) via gp_Pnt ConvertClickToCoordinate(int x, int y, Handle(V3D_View) aView) when using Projection_Orthographic projection type.
But the result is wrong when using Projection_Perspective projection type.
Anyone there has any idea to fix it?
Sat, 06/27/2020 - 20:04
There is no ConvertClickToCoordinate() function in OCCT - how it looks?
Sun, 06/28/2020 - 06:01
Hi Kirill
This function is in the Viewer3dView class from Viewer3d project of mfc sample.
There's the code
When using Projection_Orthographic projection type, I can get the point via cursor.
But when using Projection_Perspective projection type, the result point is far away from the cursor.
I got different result in two projection types of the code below