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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user