1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0025624: Visualization - selection is incorrect in perspective mode in a specific case

Corrected computation of picking line for perspective camera;
Test case for issue 25624.
This commit is contained in:
vpa
2015-02-12 11:48:05 +03:00
committed by bugmaster
parent 873c119ff1
commit 42b96b07b5
4 changed files with 71 additions and 10 deletions

View File

@@ -475,7 +475,10 @@ Standard_Boolean StdSelect_ViewerSelector3d::UpdateProj (const Handle(V3d_View)&
aScaledProj.ChangeValue (2, 2) = aViewDimensions.Z();
Graphic3d_Mat4d aScaledProjMatrix = aScaledProj * aProjMatrix;
myProjector = new Select3D_Projector (aMVMatrix, aScaledProjMatrix);
Standard_Real aZNear = theView->Camera()->ZNear();
Standard_Real aZFar = theView->Camera()->ZFar();
myProjector = new Select3D_Projector (aMVMatrix, aScaledProjMatrix, aZNear, aZFar);
}
}