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

0024842: Crash on change of HLR-algo in top and bottom views of customer's shape

Test cases for issues CR24842
This commit is contained in:
jgv
2014-04-16 15:55:09 +04:00
committed by abv
parent 69b558c435
commit 5ec5d80d0e
8 changed files with 141 additions and 1 deletions

View File

@@ -94,7 +94,7 @@ HLRBRep_Curve::Parameter3d (const Standard_Real P2d) const
const Standard_Real FmOZ = myOF - myOZ;
return P2d * FmOZ * FmOZ / (FmOZ * (myOF * myVX + P2d * myVZ) + myOF * myOX * myVZ);
}
return P2d / myVX;
return ((myVX <= gp::Resolution())? P2d : (P2d / myVX));
}
else if (myType == GeomAbs_Ellipse) {