mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
0026636: BRepOffsetAPI_ThruSections algorithm crashes on two inconsistent wires
Test case for issue CR26636
This commit is contained in:
parent
f81b508020
commit
68dace5e56
@ -1143,6 +1143,8 @@ void BRepFill_CompatibleWires::
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} //end of for(; itW.More(); itW.Next())
|
} //end of for(; itW.More(); itW.Next())
|
||||||
|
if (Esol.IsNull())
|
||||||
|
Standard_ConstructionError::Raise("BRepFill :: profiles are inconsistent");
|
||||||
MW.Add(Esol);
|
MW.Add(Esol);
|
||||||
|
|
||||||
TopTools_ListOfShape ConnectedEdges;
|
TopTools_ListOfShape ConnectedEdges;
|
||||||
|
27
tests/bugs/modalg_6/bug26636
Normal file
27
tests/bugs/modalg_6/bug26636
Normal 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"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user