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

0026281: BRepCheck_Edge::Tolerance() raises exception on the given shapes

The reason of the exception has been eliminated

Test-cases for issue #26281
This commit is contained in:
nbv
2015-06-04 14:01:53 +03:00
committed by abv
parent edab390e05
commit ae5635ca15
4 changed files with 27 additions and 0 deletions

View File

@@ -275,6 +275,10 @@ void BSplCLib::LocateParameter
while (val <= Eps) {
KnotIndex++;
if(KnotIndex >= Knots.Upper())
break;
K1 = K2;
K2 = knots[KnotIndex + 1];
val = K2 - K1;

View File

@@ -570,6 +570,9 @@ static Standard_Boolean PrepareEval (const Standard_Real U,
if(ip < PLowerRow)
ip = PUpperRow;
if(ip > PUpperRow)
ip = PLowerRow;
for (j = 0; j <= d2; j++)
{
const gp_Pnt& P = Poles.Value(ip,jp);