X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FGraphic3d%2FGraphic3d_Camera.cxx;h=854ec60cf2bdea9d54b9988844206adb95d5c717;hp=a251811e3398d05e0e415f93b729a0147cad166e;hb=9ad4ff93a03daf951ec773b676c47f7c849cc35c;hpb=89fcfe15511463c9588c34d101fba7e795198200 diff --git a/src/Graphic3d/Graphic3d_Camera.cxx b/src/Graphic3d/Graphic3d_Camera.cxx index a251811..854ec60 100644 --- a/src/Graphic3d/Graphic3d_Camera.cxx +++ b/src/Graphic3d/Graphic3d_Camera.cxx @@ -1475,7 +1475,8 @@ Standard_EXPORT void NCollection_Lerp::Interpolate (co //function : FrustumPoints //purpose : //======================================================================= -void Graphic3d_Camera::FrustumPoints (NCollection_Array1& thePoints) const +void Graphic3d_Camera::FrustumPoints (NCollection_Array1& thePoints, + const Graphic3d_Mat4d& theModelWorld) const { if (thePoints.Length() != FrustumVerticesNB) { @@ -1483,7 +1484,7 @@ void Graphic3d_Camera::FrustumPoints (NCollection_Array1& thePo } const Graphic3d_Mat4d& aProjectionMat = ProjectionMatrix(); - const Graphic3d_Mat4d& aWorldViewMat = OrientationMatrix(); + const Graphic3d_Mat4d aWorldViewMat = OrientationMatrix() * theModelWorld; Standard_Real nLeft = 0.0, nRight = 0.0, nTop = 0.0, nBottom = 0.0; Standard_Real fLeft = 0.0, fRight = 0.0, fTop = 0.0, fBottom = 0.0;