]> OCCT Git - occt.git/commitdiff
0022794: Boolean Cut operation produces incorrect result.
authorbugmaster <bugmaster@opencascade.com>
Fri, 19 Aug 2016 06:55:06 +0000 (09:55 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 25 Aug 2016 08:11:59 +0000 (11:11 +0300)
Adding testing case

tests/bugs/modalg_6/bug22794 [new file with mode: 0644]

diff --git a/tests/bugs/modalg_6/bug22794 b/tests/bugs/modalg_6/bug22794
new file mode 100644 (file)
index 0000000..62dd82f
--- /dev/null
@@ -0,0 +1,38 @@
+puts "============"
+puts "OCC22793"
+puts "============"
+puts ""
+######################################################
+# Boolean cut operation hangs computer
+######################################################
+
+restore [locate_data_file bug22794a.brep] p
+restore [locate_data_file bug22794b.brep] v
+
+checkshape p
+tolerance p
+
+checkshape v
+tolerance v
+
+bop p v
+bopcut result
+
+checkprops result -s 1.89654e+007 
+checkshape result
+
+set nbshapes_expected "
+Number of shapes in result
+ VERTEX    : 20
+ EDGE      : 30
+ WIRE      : 14
+ FACE      : 14
+ SHELL     : 2
+ SOLID     : 2
+ COMPSOLID : 0
+ COMPOUND  : 1
+ SHAPE     : 83
+"
+checknbshapes result -ref ${nbshapes_expected} -t -m "Result obtained by Boolean cut operation"
+
+checkview -display result -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file