]> OCCT Git - occt.git/commitdiff
0027936: [regression] BRepAlgoAPI_Common returns empty result for a solid and a face
authorapv <apv@opencascade.com>
Wed, 23 Aug 2017 11:24:54 +0000 (14:24 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 24 Aug 2017 16:12:41 +0000 (19:12 +0300)
Problem is not reproduced on current master. Issue must be closed on 7.2.0.
Test case was added only.

tests/bugs/modalg_7/bug27936 [new file with mode: 0644]

diff --git a/tests/bugs/modalg_7/bug27936 b/tests/bugs/modalg_7/bug27936
new file mode 100644 (file)
index 0000000..ee5ea64
--- /dev/null
@@ -0,0 +1,22 @@
+puts "========"
+puts "OCC27936"
+puts "========"
+puts ""
+###############################################################################
+# [regression] BRepAlgoAPI_Common returns empty result for a solid and a face
+###############################################################################
+
+restore [locate_data_file bug27936_rsi.brep] s
+
+explode s
+brunparallel 1
+bop s_1 s_2
+bopcommon result
+
+set bug_info [string trim [explode result]]
+if {$bug_info == ""} {
+  puts "ERROR: OCC27936 is reproduced. Result of bopcommon is empty."
+}
+
+checkshape result
+checknbshapes result -vertex 4 -edge 4 -wire 1 -face 1 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 11