1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0024065: Wrong intersection point

Adding test case for issue CR24065

Small corrections of test cases
This commit is contained in:
emv
2013-08-29 13:30:41 +04:00
committed by bugmaster
parent 0f180c0c18
commit 4355f260b0
4 changed files with 34 additions and 3 deletions

View File

@@ -326,7 +326,8 @@ gp_Ax2 DirToAx2(const gp_Pnt& P,const gp_Dir& D)
Standard_Real denom2 = denom*denom;
Standard_Real ddenom = 1. - denom2;
denom = ( Abs(ddenom) <= 1.e-9 ) ? 1.e-9 : ddenom;
//denom = ( Abs(ddenom) <= 1.e-9 ) ? 1.e-9 : ddenom;
denom = ( Abs(ddenom) <= 1.e-16 ) ? 1.e-16 : ddenom;
Standard_Real par1 = dist1/denom;
Standard_Real par2 = -dist2/denom;