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-Tag: V7_6_0_beta~249 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=1507ccda406866a8335af2f26a8dacfb67832a40;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 6b0b828044..8683c77d19 100644 --- a/src/V3d/V3d_View.cxx +++ b/src/V3d/V3d_View.cxx @@ -969,7 +969,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,"); }