From: osa Date: Mon, 11 Aug 2014 07:02:30 +0000 (+0400) Subject: 0025137: The methods "Convert" point defined in the reference frame of the view into... X-Git-Tag: V6_8_0_beta~157 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=72b11796c522238780eadd61adc6259b45e1c98b;p=occt-copy.git 0025137: The methods "Convert" point defined in the reference frame of the view into the projected point and backwards are not consistent --- diff --git a/src/V3d/V3d_View.cxx b/src/V3d/V3d_View.cxx index 0dc39962ef..e04dfa88d2 100644 --- a/src/V3d/V3d_View.cxx +++ b/src/V3d/V3d_View.cxx @@ -1928,7 +1928,7 @@ void V3d_View::Convert(const Standard_Real X, gp_Pnt aPoint = myCamera->Project (gp_Pnt (X, Y, Z)); 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); } //=======================================================================