mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40: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,6 +1,3 @@
|
||||
puts "TODO OCC23068 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23068 ALL: Error : The volume of result shape "
|
||||
|
||||
## ======================================
|
||||
## Grid : CCV002
|
||||
## Test : A1
|
||||
@@ -12,4 +9,4 @@ explode s F
|
||||
offsetcompshape result s -10 s_1
|
||||
|
||||
#real volume of result shape is unknown yet
|
||||
checkprops result -v 0
|
||||
checkprops result -v 1.01e+06
|
||||
|
@@ -4,7 +4,6 @@
|
||||
## Comment : From CV tests serie page 60
|
||||
## ======================================
|
||||
|
||||
puts "TODO OCC26556 ALL: ERROR. offsetperform operation not done."
|
||||
restore [locate_data_file CCV_2_d1_gsw.rle] s
|
||||
explode s F
|
||||
catch {offsetcompshape result s -2 s_17}
|
||||
|
@@ -1,9 +1,9 @@
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
puts "TODO CR23530 ALL: Faulty shapes in variables faulty_1 to faulty_"
|
||||
puts "TODO OCC23068 ALL: Error : The area of face "
|
||||
|
||||
pcone s 5 0 12 90
|
||||
trotate s 0 0 0 0 0 1 90
|
||||
|
||||
OFFSETSHAPE 1 {s_4} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 78.53988
|
||||
|
@@ -1,9 +1,5 @@
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
|
||||
pcone s 5 0 12 270
|
||||
|
||||
OFFSETSHAPE -1 {s_4} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 235.619
|
||||
|
@@ -1,9 +1,5 @@
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
|
||||
pcone s 5 0 12 270
|
||||
|
||||
OFFSETSHAPE 1 {s_3 s_4} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 235.619
|
||||
|
@@ -1,10 +1,9 @@
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
puts "TODO OCC23068 ALL: Error : The area of face "
|
||||
puts "TODO CR23530 ALL: Faulty shapes in variables faulty_1 to faulty_"
|
||||
|
||||
psphere s 15 -90 60 90
|
||||
trotate s 0 0 0 0 0 1 90
|
||||
|
||||
OFFSETSHAPE 1 {s_4} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 3488.84
|
||||
|
@@ -1,9 +1,8 @@
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
puts "TODO OCC23068 ALL: Error : The area of face "
|
||||
puts "TODO CR23530 ALL: Faulty shapes in variables faulty_1 to faulty_"
|
||||
|
||||
psphere s 15 -90 60 270
|
||||
|
||||
OFFSETSHAPE 1 {s_4} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 10466.5
|
||||
|
@@ -1,9 +1,5 @@
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
|
||||
psphere s 15 -90 60 270
|
||||
|
||||
OFFSETSHAPE -1 {s_4} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 10466.5
|
||||
|
@@ -1,10 +1,8 @@
|
||||
puts "TODO OCC23068 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23068 ALL: Error : The offset cannot be built."
|
||||
puts "TODO OCC23068 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC23068 ALL: Error : The area of face "
|
||||
|
||||
psphere s 15 90
|
||||
trotate s 0 0 0 0 0 1 90
|
||||
|
||||
OFFSETSHAPE 1 {s_3} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 3534.29
|
||||
|
@@ -1,5 +1,4 @@
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error : The offset cannot be built."
|
||||
puts "TODO OCC23068 ALL: Error : The area of face "
|
||||
|
||||
psphere s 15 270
|
||||
|
||||
|
@@ -1,9 +1,5 @@
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
|
||||
psphere s 15 270
|
||||
|
||||
OFFSETSHAPE -1 {s_2} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 10602.9
|
||||
|
@@ -1,8 +1,5 @@
|
||||
puts "TODO OCC24156 MacOS: An exception was caught"
|
||||
puts "TODO OCC24156 MacOS: TEST INCOMPLETE"
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
puts "TODO CR23530 ALL: Faulty shapes in variables faulty_1 to faulty_"
|
||||
puts "TODO OCC23068 ALL: Error : The area of face "
|
||||
|
||||
ellipse w1 0 0 0 15 10
|
||||
mkedge w1 w1 0 pi/2
|
||||
@@ -14,4 +11,4 @@ revol s w 0 0 0 0 0 1 90
|
||||
|
||||
OFFSETSHAPE 1 {s_4} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 4385.14
|
||||
|
@@ -1,9 +1,3 @@
|
||||
puts "TODO OCC24156 MacOS: An exception was caught"
|
||||
puts "TODO OCC24156 MacOS: TEST INCOMPLETE"
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
|
||||
ellipse w1 0 0 0 15 10
|
||||
mkedge w1 w1 0 pi/2
|
||||
trotate w1 0 0 0 1 0 0 90
|
||||
@@ -14,4 +8,4 @@ revol s w 0 0 0 0 0 1 90
|
||||
|
||||
OFFSETSHAPE -1 {s_4} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 4385.14
|
||||
|
@@ -1,9 +1,3 @@
|
||||
puts "TODO OCC24156 MacOS: An exception was caught"
|
||||
puts "TODO OCC24156 MacOS: TEST INCOMPLETE"
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
|
||||
ellipse w1 0 0 0 15 10
|
||||
mkedge w1 w1 0 pi/2
|
||||
trotate w1 0 0 0 1 0 0 90
|
||||
@@ -14,4 +8,4 @@ revol s w 0 0 0 0 0 1 90
|
||||
|
||||
OFFSETSHAPE 1 {s_4 s_5} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 4385.14
|
||||
|
@@ -1,7 +1,3 @@
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
|
||||
ellipse w1 0 0 0 15 10
|
||||
mkedge w1 w1 0 pi/2
|
||||
trotate w1 0 0 0 1 0 0 90
|
||||
@@ -12,4 +8,4 @@ revol s w 0 0 0 0 0 1 90
|
||||
|
||||
OFFSETSHAPE -1 {s_4 s_5} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 4385.14
|
||||
|
@@ -1,8 +1,5 @@
|
||||
puts "TODO OCC24156 MacOS: An exception was caught"
|
||||
puts "TODO OCC24156 MacOS: TEST INCOMPLETE"
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
puts "TODO CR23530 ALL: Faulty shapes in variables faulty_1 to faulty_"
|
||||
puts "TODO OCC23068 ALL: Error : The area of face "
|
||||
|
||||
ellipse w1 0 0 0 15 10
|
||||
mkedge w1 w1 0 pi/2
|
||||
@@ -14,4 +11,4 @@ revol s w 0 0 0 0 0 1 270
|
||||
|
||||
OFFSETSHAPE 1 {s_4} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 13155.2
|
||||
|
@@ -1,9 +1,3 @@
|
||||
puts "TODO OCC24156 MacOS: An exception was caught"
|
||||
puts "TODO OCC24156 MacOS: TEST INCOMPLETE"
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
|
||||
cpulimit 400
|
||||
|
||||
ellipse w1 0 0 0 15 10
|
||||
@@ -16,4 +10,4 @@ revol s w 0 0 0 0 0 1 270
|
||||
|
||||
OFFSETSHAPE -1 {s_4} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 13155.2
|
||||
|
@@ -1,9 +1,3 @@
|
||||
puts "TODO OCC24156 MacOS: An exception was caught"
|
||||
puts "TODO OCC24156 MacOS: TEST INCOMPLETE"
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
|
||||
ellipse w1 0 0 0 15 10
|
||||
mkedge w1 w1 0 pi/2
|
||||
trotate w1 0 0 0 1 0 0 90
|
||||
@@ -14,4 +8,4 @@ revol s w 0 0 0 0 0 1 270
|
||||
|
||||
OFFSETSHAPE 1 {s_4 s_5} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 13155.2
|
||||
|
@@ -1,9 +1,3 @@
|
||||
puts "TODO OCC24156 MacOS: An exception was caught"
|
||||
puts "TODO OCC24156 MacOS: TEST INCOMPLETE"
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
|
||||
# 17.01.2010
|
||||
cpulimit 600
|
||||
# 17.01.2010
|
||||
@@ -18,4 +12,4 @@ revol s w 0 0 0 0 0 1 270
|
||||
|
||||
OFFSETSHAPE -1 {s_4 s_5} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 13155.2
|
||||
|
@@ -1,9 +1,5 @@
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
|
||||
pcylinder s 5 10 270
|
||||
|
||||
OFFSETSHAPE -1 {s_5} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 589.049
|
||||
|
@@ -1,9 +1,5 @@
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
|
||||
pcone s 9 4 15 270
|
||||
|
||||
OFFSETSHAPE -1 {s_5} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 1566.87
|
||||
|
@@ -1,9 +1,5 @@
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
|
||||
ptorus s 10 10 0 45 270
|
||||
|
||||
OFFSETSHAPE -1 {s_4} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 6083.13
|
||||
|
@@ -1,7 +1,3 @@
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
|
||||
circle w -20 0 0 20
|
||||
mkedge w w 0 pi*2/5
|
||||
wire w w
|
||||
@@ -11,4 +7,4 @@ pipe s w profile
|
||||
|
||||
OFFSETSHAPE 1 {s_2 s_3} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 785.398
|
||||
|
@@ -1,7 +1,3 @@
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
|
||||
circle w -20 0 0 20
|
||||
mkedge w w 0 pi*2/5
|
||||
wire w w
|
||||
@@ -11,4 +7,4 @@ pipe s w profile
|
||||
|
||||
OFFSETSHAPE 1 {s_4 s_5} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 785.398
|
||||
|
@@ -1,8 +1,5 @@
|
||||
puts "TODO OCC24156 MacOS: An exception was caught"
|
||||
puts "TODO OCC24156 MacOS: TEST INCOMPLETE"
|
||||
puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23748 ALL: Error: The command cannot be built"
|
||||
puts "TODO OCC26556 ALL: Error : The offset cannot be built."
|
||||
puts "TODO CR23530 ALL: Faulty shapes in variables faulty_1 to faulty_"
|
||||
puts "TODO OCC23068 ALL: Error : The area of face "
|
||||
|
||||
beziersurf c 3 2 \
|
||||
0 0 0 0 5 5 2 14 3 \
|
||||
@@ -12,4 +9,4 @@ prism s c 0 0 20
|
||||
|
||||
OFFSETSHAPE 1 {s_5 s_6} $calcul $type
|
||||
|
||||
checkprops result -v 0
|
||||
checkprops result -v 3340
|
||||
|
@@ -1,5 +1,3 @@
|
||||
puts "TODO OCC23068 All: ERROR. offsetperform operation not done."
|
||||
puts "TODO OCC23068 All: Error : The volume of result shape is"
|
||||
# Original bug : hkg60144
|
||||
# Date : 17Juillet98
|
||||
|
||||
@@ -9,5 +7,5 @@ explode s f
|
||||
offsetshape result s -5 s_1
|
||||
|
||||
|
||||
checkprops result -v 2.12817e+006
|
||||
checkprops result -v 2.80312e+07
|
||||
|
||||
|
Reference in New Issue
Block a user