mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
0031601: Modeling Algorithms - BRepOffset_Tool Segmentation Fault
Added protection against null pointer dereferencing. Modified BRepOffset_MakeOffset::MakeThickSolid method. Fixed the problem with negative volume values. Fixed several unit tests and added a new one.
This commit is contained in:
@@ -1,8 +1,3 @@
|
||||
puts "TODO OCC23068 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23068 ALL: result is not a topological shape!!!"
|
||||
puts "TODO OCC23068 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC23068 ALL: TEST INCOMPLETE"
|
||||
|
||||
puts "========================"
|
||||
puts " OCC427 "
|
||||
puts "(case 6)"
|
||||
|
@@ -1,8 +1,4 @@
|
||||
puts "TODO OCC25925 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC25925 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC25925 ALL: Faulty OCC5805 : result is not Closed shape"
|
||||
puts "TODO OCC25925 ALL: TEST INCOMPLETE"
|
||||
puts "TODO OCC25925 ALL: Tcl Exception: Error : command \\\"nbshapes result\\\" gives an empty result"
|
||||
puts "TODO OCC25925 ALL: Error : The area of result shape is"
|
||||
|
||||
puts "============"
|
||||
puts "OCC5805"
|
||||
@@ -52,6 +48,6 @@ if {$index == -1} {
|
||||
|
||||
}
|
||||
|
||||
checknbshapes result -t -wire 5 -face 5 -shell 2 -solid 1
|
||||
checknbshapes result -t -wire 3 -face 3 -shell 1 -solid 1
|
||||
|
||||
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
||||
|
@@ -1,8 +1,4 @@
|
||||
puts "TODO OCC25925 ALL: Faulty OCC5805 : result is not Closed shape"
|
||||
puts "TODO OCC25925 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC25925 ALL: Tcl Exception: Error : command \\\"nbshapes result\\\" gives an empty result"
|
||||
puts "TODO OCC25925 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC25925 ALL: TEST INCOMPLETE"
|
||||
puts "TODO OCC25925 ALL: Error : The area of result shape is"
|
||||
|
||||
puts "============"
|
||||
puts "OCC5805"
|
||||
@@ -53,6 +49,6 @@ if {$index == -1} {
|
||||
|
||||
}
|
||||
|
||||
checknbshapes result -vertex 2 -edge 3 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 13
|
||||
checknbshapes result -vertex 1 -edge 2 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 11
|
||||
|
||||
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
||||
|
@@ -1,8 +1,4 @@
|
||||
puts "TODO OCC25925 ALL: Faulty OCC5805 : result is not Closed shape"
|
||||
puts "TODO OCC25925 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC25925 ALL: Tcl Exception: Error : command \\\"nbshapes result\\\" gives an empty result"
|
||||
puts "TODO OCC25925 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC25925 ALL: TEST INCOMPLETE"
|
||||
puts "TODO OCC25925 ALL: Error : The area of result shape is"
|
||||
|
||||
puts "============"
|
||||
puts "OCC5805"
|
||||
@@ -53,6 +49,6 @@ if {$index == -1} {
|
||||
|
||||
}
|
||||
|
||||
checknbshapes result -vertex 2 -edge 3 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 13
|
||||
checknbshapes result -vertex 1 -edge 2 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 11
|
||||
|
||||
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
||||
|
@@ -1,6 +1,4 @@
|
||||
puts "TODO OCC25925 ALL: Faulty OCC5805 : result is not Closed shape"
|
||||
puts "TODO OCC25925 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC25925 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC25925 ALL: Error : The area of result shape is"
|
||||
|
||||
puts "============"
|
||||
puts "OCC5805"
|
||||
|
@@ -1,7 +1,4 @@
|
||||
puts "TODO OCC23068 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC25925 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC25925 ALL: Tcl Exception: result is not a topological shape"
|
||||
puts "TODO OCC25925 ALL: TEST INCOMPLETE"
|
||||
puts "TODO OCC25925 ALL: Error : The area of result shape is"
|
||||
|
||||
puts "============"
|
||||
puts "OCC5805"
|
||||
|
@@ -1,8 +1,4 @@
|
||||
puts "TODO OCC25925 ALL: Faulty OCC5805 : result is not Closed shape"
|
||||
puts "TODO OCC25925 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC25925 ALL: Tcl Exception: Error : command \\\"nbshapes result\\\" gives an empty result"
|
||||
puts "TODO OCC25925 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC25925 ALL: TEST INCOMPLETE"
|
||||
puts "TODO OCC25925 ALL: Error : The area of result shape is"
|
||||
|
||||
puts "============"
|
||||
puts "OCC5805"
|
||||
|
@@ -1,5 +1,3 @@
|
||||
puts "TODO OCC25395 ALL: ERROR. offsetperform operation not done."
|
||||
|
||||
puts "========"
|
||||
puts "OCC25395"
|
||||
puts "========"
|
||||
|
@@ -1,5 +1,3 @@
|
||||
puts "TODO OCC25939 ALL: An exception was caught"
|
||||
|
||||
puts "============"
|
||||
puts "0025939: S I G S E G V in MakeThickSolid"
|
||||
puts "============"
|
||||
|
@@ -1,5 +1,3 @@
|
||||
puts "TODO OCC31845 All: ERROR. offsetperform operation not done."
|
||||
|
||||
puts "============================================"
|
||||
puts "OCC31845: BRepOffsetAPI_MakeThickSolid fails"
|
||||
puts "============================================"
|
||||
|
@@ -1,5 +1,3 @@
|
||||
puts "TODO OCC31845 All: ERROR. offsetperform operation not done."
|
||||
|
||||
puts "============================================"
|
||||
puts "OCC31845: BRepOffsetAPI_MakeThickSolid fails"
|
||||
puts "============================================"
|
||||
|
15
tests/bugs/modalg_8/bug31601
Normal file
15
tests/bugs/modalg_8/bug31601
Normal file
@@ -0,0 +1,15 @@
|
||||
puts "================================================================="
|
||||
puts "0031601: Modeling Algorithms - BRepOffset_Tool Segmentation Fault"
|
||||
puts "================================================================="
|
||||
puts ""
|
||||
|
||||
pload MODELING
|
||||
box b 50 50 10
|
||||
explode b E
|
||||
compound b_1 b_2 b_3 b_4 b_5 b_6 b_7 b_8 b_9 b_10 b_11 b_12 c
|
||||
fillet s b 4 c
|
||||
explode s F
|
||||
offsetparameter 1.e-7 c a
|
||||
offsetload s 1 s_11
|
||||
offsetperform r
|
||||
checkview -display r -2d -path ${imagedir}/${test_image}.png
|
Reference in New Issue
Block a user