1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-06 18:26:22 +03:00

0025137: The methods "Convert" point defined in the reference frame of the view into the projected point and backwards are not consistent

This commit is contained in:
osa 2014-08-11 11:02:30 +04:00 committed by bugmaster
parent c398b00ed8
commit 72b11796c5

View File

@ -1928,7 +1928,7 @@ void V3d_View::Convert(const Standard_Real X,
gp_Pnt aPoint = myCamera->Project (gp_Pnt (X, Y, Z)); gp_Pnt aPoint = myCamera->Project (gp_Pnt (X, Y, Z));
Xp = RealToInt ((aPoint.X() + 1) * 0.5 * aWidth); Xp = RealToInt ((aPoint.X() + 1) * 0.5 * aWidth);
Yp = RealToInt ((aPoint.Y() + 1) * 0.5 * aHeight); Yp = RealToInt (aHeight - 1 - (aPoint.Y() + 1) * 0.5 * aHeight);
} }
//======================================================================= //=======================================================================