1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00

0026636: BRepOffsetAPI_ThruSections algorithm crashes on two inconsistent wires

Test case for issue CR26636
This commit is contained in:
jgv 2015-09-10 16:47:39 +03:00 committed by abv
parent f81b508020
commit 68dace5e56
2 changed files with 29 additions and 0 deletions

View File

@ -1143,6 +1143,8 @@ void BRepFill_CompatibleWires::
}
}
} //end of for(; itW.More(); itW.Next())
if (Esol.IsNull())
Standard_ConstructionError::Raise("BRepFill :: profiles are inconsistent");
MW.Add(Esol);
TopTools_ListOfShape ConnectedEdges;

View File

@ -0,0 +1,27 @@
puts "=========="
puts "OCC26636"
puts "=========="
puts ""
############################################################
# BRepOffsetAPI_ThruSections algorithm crashes on two inconsistent wires
############################################################
restore [locate_data_file bug26636_w1.brep] w1
restore [locate_data_file bug26636_w2.brep] w2
decho off
dlog reset
dlog on
catch {thrusections result 0 1 w1 w2}
set info [dlog get]
dlog reset
dlog off
decho on
if { [regexp "Standard_ConstructionError\\: BRepFill \\:\\: profiles are inconsistent" ${info}] == 1 } {
puts "OK : Exeption is correct"
} else {
puts "Error : Exeption is not correct"
}