]> OCCT Git - occt-copy.git/commitdiff
0021670: BOP section produces bad result
authorapv <apv@opencascade.com>
Thu, 24 Dec 2015 13:09:34 +0000 (16:09 +0300)
committerbugmaster <bugmaster@opencascade.com>
Wed, 13 Jan 2016 11:51:35 +0000 (14:51 +0300)
Test case for issue #21670

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

diff --git a/tests/bugs/modalg_6/bug21670 b/tests/bugs/modalg_6/bug21670
new file mode 100644 (file)
index 0000000..61112fe
--- /dev/null
@@ -0,0 +1,35 @@
+puts "========"
+puts "OCC21670"
+puts "========"
+puts ""
+###################################
+# BOP section produces bad result
+###################################
+
+smallview
+
+restore [locate_data_file bug21633_SECC19_1_IZQ.brep] a
+
+explode a f
+mksurface s a_1
+mkface f s
+
+restore [locate_data_file bug21670-bug_prj_wire.brep] w
+
+explode w
+prism p w_1 0 0 -1
+
+donly f p
+fit
+
+puts "Checking f: [bopcheck f] [checkshape f] [tolerance f]"
+puts "Checking p: [bopcheck p] [checkshape p] [tolerance p]"
+
+bsection result f p
+
+set bug_info [explode result]
+if {[llength $bug_info] != 1} {
+  puts "ERROR: OCC21670 is reproduced. Result of bsection command is set of shapes."
+}
+
+set only_screen_axo 1