1
0
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:
astromko
2024-02-08 17:02:45 +00:00
committed by dpasukhi
parent f7f32bf33e
commit 6635f53848
41 changed files with 75 additions and 178 deletions

View File

@@ -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)"

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -1,5 +1,3 @@
puts "TODO OCC25395 ALL: ERROR. offsetperform operation not done."
puts "========"
puts "OCC25395"
puts "========"

View File

@@ -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 "============"

View File

@@ -1,5 +1,3 @@
puts "TODO OCC31845 All: ERROR. offsetperform operation not done."
puts "============================================"
puts "OCC31845: BRepOffsetAPI_MakeThickSolid fails"
puts "============================================"

View File

@@ -1,5 +1,3 @@
puts "TODO OCC31845 All: ERROR. offsetperform operation not done."
puts "============================================"
puts "OCC31845: BRepOffsetAPI_MakeThickSolid fails"
puts "============================================"

View 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