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:
parent
edab390e05
commit
ae5635ca15
@ -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;
|
||||||
|
@ -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);
|
||||||
|
10
tests/bugs/modalg_6/bug26281_1
Normal file
10
tests/bugs/modalg_6/bug26281_1
Normal 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
|
10
tests/bugs/modalg_6/bug26281_2
Normal file
10
tests/bugs/modalg_6/bug26281_2
Normal 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
|
Loading…
x
Reference in New Issue
Block a user