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:
parent
c398b00ed8
commit
72b11796c5
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user