]> OCCT Git - occt.git/commitdiff
0026848: Result of BO depends on arguments order
authornbv <nbv@opencascade.com>
Tue, 8 Dec 2015 10:52:30 +0000 (13:52 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 17 Dec 2015 12:04:11 +0000 (15:04 +0300)
Correction test case for this issue

Test cases for CR26848

tests/bugs/modalg_3/bug600
tests/bugs/modalg_6/bug26848 [new file with mode: 0755]

index c0e93632fa54accaa6101488ec835fd9e6d52cba..b9edf17d35faaf0947f1854c4eab08d47b7e06ee 100755 (executable)
@@ -13,6 +13,30 @@ bop b a
 
 bopcommon result
 
+set square 41970.8
+
+set nbshapes_expected "
+Number of shapes in shape
+ VERTEX : 55
+ EDGE : 93
+ WIRE : 40
+ FACE : 40
+ SHELL : 1
+ SOLID : 1
+ COMPSOLID : 0
+ COMPOUND : 1
+ SHAPE : 231
+"
+checknbshapes result -ref ${nbshapes_expected} -t -m "Result of Boolean operations"
+
+checknbshapes r1 -ref ${nbshapes_expected} -t -m "BOPCOMMON"
+checkshape r1
+
+restore [locate_data_file OCC600_1.brep] a 
+restore [locate_data_file OCC600_2.brep] b 
+
+bcommon result b a
+
 checkprops result -s 41970.8
 checkshape result
 set 2dviewer 0
diff --git a/tests/bugs/modalg_6/bug26848 b/tests/bugs/modalg_6/bug26848
new file mode 100755 (executable)
index 0000000..4853b90
--- /dev/null
@@ -0,0 +1,33 @@
+puts "========================"
+puts " OCC26848"
+puts " OCC600"
+puts "========================"
+## Result of BOPCOMMON operation is unclosed shape inspite of source solids are valid
+## Result of BO depends on arguments order
+############################################################
+cpulimit 5000
+restore [locate_data_file OCC600_1.brep] a 
+checkshape a
+restore [locate_data_file OCC600_2.brep] b 
+checkshape b
+bop a b
+
+bopcommon result
+
+set square 41970.8
+
+set nbshapes_expected "
+Number of shapes in shape
+ VERTEX : 55
+ EDGE : 93
+ WIRE : 40
+ FACE : 40
+ SHELL : 1
+ SOLID : 1
+ COMPSOLID : 0
+ COMPOUND : 1
+ SHAPE : 231
+"
+checknbshapes result -ref ${nbshapes_expected} -t -m "Result of Boolean operations"
+
+set 2dviewer 0