From 72b11796c522238780eadd61adc6259b45e1c98b Mon Sep 17 00:00:00 2001 From: osa Date: Mon, 11 Aug 2014 11:02:30 +0400 Subject: [PATCH] 0025137: The methods "Convert" point defined in the reference frame of the view into the projected point and backwards are not consistent --- src/V3d/V3d_View.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } //======================================================================= -- 2.39.5