1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0026304: Visualization - wrong calculation of point in SelectMgr_RectangularFrustum::DetectedPoint

This commit is contained in:
vpa
2015-06-02 18:45:45 +03:00
committed by bugmaster
parent 2a739b6d66
commit 95ab77177b
2 changed files with 47 additions and 1 deletions

View File

@@ -776,7 +776,7 @@ Standard_Real SelectMgr_RectangularFrustum::DistToGeometryCenter (const gp_Pnt&
// =======================================================================
SelectMgr_Vec3 SelectMgr_RectangularFrustum::DetectedPoint (const Standard_Real theDepth) const
{
return myNearPickedPnt + myViewRayDir * theDepth;
return myNearPickedPnt + myViewRayDir.Normalized() * theDepth;
}
// =======================================================================