From: kgv Date: Thu, 25 Feb 2021 11:10:18 +0000 (+0300) Subject: 0032168: Visualization - Wrong computation of screen axis in V3d_View::SetTwist method X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=49c3828bcf8311236c16a8f7e5a1c634bb5faee3;p=occt.git 0032168: Visualization - Wrong computation of screen axis in V3d_View::SetTwist method Fixed wrong axis check. --- diff --git a/src/V3d/V3d_View.cxx b/src/V3d/V3d_View.cxx index 9893f73e0b..bedc6b38d5 100644 --- a/src/V3d/V3d_View.cxx +++ b/src/V3d/V3d_View.cxx @@ -968,7 +968,7 @@ void V3d_View::SetTwist(const Standard_Real angle) const gp_Dir aReferencePlane (aCamera->Direction().Reversed()); if (!screenAxis (aReferencePlane, gp::DZ(), myXscreenAxis, myYscreenAxis, myZscreenAxis) && !screenAxis (aReferencePlane, gp::DY(), myXscreenAxis, myYscreenAxis, myZscreenAxis) - && !screenAxis (aReferencePlane, gp::DZ(), myXscreenAxis, myYscreenAxis, myZscreenAxis)) + && !screenAxis (aReferencePlane, gp::DX(), myXscreenAxis, myYscreenAxis, myZscreenAxis)) { throw V3d_BadValue ("V3d_ViewSetTwist, alignment of Eye,At,Up,"); }