]> OCCT Git - occt.git/commitdiff
0028893: BOP cut produces result with artifacts consisting of tools parts
authoremv <emv@opencascade.com>
Wed, 9 Aug 2017 06:13:18 +0000 (09:13 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 17 Aug 2017 12:48:15 +0000 (15:48 +0300)
tests/bugs/modalg_7/bug28893_1 [new file with mode: 0644]
tests/bugs/modalg_7/bug28893_2 [new file with mode: 0644]
tests/bugs/modalg_7/bug28893_3 [new file with mode: 0644]
tests/bugs/modalg_7/bug28893_4 [new file with mode: 0644]

diff --git a/tests/bugs/modalg_7/bug28893_1 b/tests/bugs/modalg_7/bug28893_1
new file mode 100644 (file)
index 0000000..8bbcbc0
--- /dev/null
@@ -0,0 +1,20 @@
+puts "======="
+puts "OCC28893"
+puts "======="
+puts ""
+##################################################
+# BOP cut produces result with artifacts consisting of tools parts
+##################################################
+
+binrestore [locate_data_file bug28893_shape1.bin] b1
+binrestore [locate_data_file bug28893_tools1.bin] b2
+
+bcut result b1 b2
+
+checkshape result
+
+checknbshapes result -solid 1 -shell 1 -face 23 -wire 27
+checkprops result -s 2.35544e+006
+checkprops result -v 1.15441e+007
+
+checkview -display result -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
diff --git a/tests/bugs/modalg_7/bug28893_2 b/tests/bugs/modalg_7/bug28893_2
new file mode 100644 (file)
index 0000000..d98a468
--- /dev/null
@@ -0,0 +1,25 @@
+puts "======="
+puts "OCC28893"
+puts "======="
+puts ""
+##################################################
+# BOP cut produces result with artifacts consisting of tools parts
+##################################################
+
+binrestore [locate_data_file bug28893_shape1.bin] b1
+binrestore [locate_data_file bug28893_tools1.bin] b2
+
+bclearobjects
+bcleartools
+baddobjects b1
+baddtools b2
+bfillds
+bbuild result
+
+checkshape result
+
+checknbshapes result -solid 7 -shell 7 -face 35 -wire 39
+checkprops result -s 2.36684e+006
+checkprops result -v 1.15772e+007
+
+checkview -display result -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
diff --git a/tests/bugs/modalg_7/bug28893_3 b/tests/bugs/modalg_7/bug28893_3
new file mode 100644 (file)
index 0000000..4a0c0c6
--- /dev/null
@@ -0,0 +1,20 @@
+puts "======="
+puts "OCC28893"
+puts "======="
+puts ""
+##################################################
+# BOP cut produces result with artifacts consisting of tools parts
+##################################################
+
+binrestore [locate_data_file bug28893_shape2.bin] b1
+binrestore [locate_data_file bug28893_tools2.bin] b2
+
+bcut result b1 b2
+
+checkshape result
+
+checknbshapes result -solid 1 -shell 1 -face 23 -wire 27
+checkprops result -s 1.10298e+006
+checkprops result -v 5.38055e+006
+
+checkview -display result -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
diff --git a/tests/bugs/modalg_7/bug28893_4 b/tests/bugs/modalg_7/bug28893_4
new file mode 100644 (file)
index 0000000..05071f8
--- /dev/null
@@ -0,0 +1,25 @@
+puts "======="
+puts "OCC28893"
+puts "======="
+puts ""
+##################################################
+# BOP cut produces result with artifacts consisting of tools parts
+##################################################
+
+binrestore [locate_data_file bug28893_shape2.bin] b1
+binrestore [locate_data_file bug28893_tools2.bin] b2
+
+bclearobjects
+bcleartools
+baddobjects b1
+baddtools b2
+bfillds
+bbuild result
+
+checkshape result
+
+checknbshapes result -solid 7 -shell 7 -face 36 -wire 40
+checkprops result -s 1.11391e+006
+checkprops result -v 5.41362e+006
+
+checkview -display result -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file