projects
/
occt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0025137: The methods "Convert" point defined in the reference frame of the view into...
[occt.git]
/
src
/
V3d
/
V3d_View.cxx
diff --git
a/src/V3d/V3d_View.cxx
b/src/V3d/V3d_View.cxx
index
0dc3996
..
e04dfa8
100644
(file)
--- 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);
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);
}
//=======================================================================
}
//=======================================================================