1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-21 10:13:43 +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) { while (val <= Eps) {
KnotIndex++; KnotIndex++;
if(KnotIndex >= Knots.Upper())
break;
K1 = K2; K1 = K2;
K2 = knots[KnotIndex + 1]; K2 = knots[KnotIndex + 1];
val = K2 - K1; val = K2 - K1;

View File

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

View File

@ -0,0 +1,10 @@
puts "========"
puts "OCC26281"
puts "========"
puts ""
####################################################################
# BRepCheck_Edge::Tolerance() raises exception on the given shapes
####################################################################
restore [locate_data_file OCC26281_a_6055.brep] a
computetolerance a

View File

@ -0,0 +1,10 @@
puts "========"
puts "OCC26281"
puts "========"
puts ""
####################################################################
# BRepCheck_Edge::Tolerance() raises exception on the given shapes
####################################################################
restore [locate_data_file OCC26281_a_6213.brep] a
computetolerance a