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

0023891: Function fsameparameter throws an exception.

Added test cases bugs modalg_5/bug23891_1/bug23891_2/bug23891_3/bug23891_4
This commit is contained in:
pkv
2013-04-15 18:22:32 +04:00
parent 7a9d451a98
commit 973f1c39ac
5 changed files with 70 additions and 2 deletions

View File

@@ -1040,8 +1040,8 @@ void BRepLib::SameParameter(const TopoDS_Edge& AnEdge,
}
// Eval tol2d to compute SameRange
Standard_Real UResol = GAS.UResolution(Tolerance);
Standard_Real VResol = GAS.VResolution(Tolerance);
Standard_Real UResol = Max(GAS.UResolution(Tolerance), Precision::PConfusion());
Standard_Real VResol = Max(GAS.VResolution(Tolerance), Precision::PConfusion());
Standard_Real Tol2d = Min(UResol, VResol);
for(Standard_Integer i = 0; i < 2; i++){
Handle(Geom2d_Curve) curPC = PC[i];