0025082: bopcommon returns different result on Windows and Linux system
authornbv <nbv@opencascade.com>
Thu, 1 Nov 2018 11:32:08 +0000 (14:32 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 2 Nov 2018 14:06:43 +0000 (17:06 +0300)
Test cases have been created because the problem is not reproduced on current MASTER

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

diff --git a/tests/bugs/modalg_7/bug25082_1 b/tests/bugs/modalg_7/bug25082_1
new file mode 100644 (file)
index 0000000..b668247
--- /dev/null
@@ -0,0 +1,46 @@
+puts "========"
+puts "0025082: bopcommon returns different result on Windows and Linux system"
+puts "========"
+puts ""
+
+puts "TODO CR29596 ALL: Warning: Intersection of pair of shapes has failed"
+
+restore [locate_data_file bug25054_shape1.brep] b1
+restore [locate_data_file bug25054_shape2.brep] b2
+
+bclearobjects
+bcleartools
+baddobjects b1
+baddtools b2
+
+bfillds
+
+for {set i 0} { $i <= 4 } { incr i} {
+  bbop r_$i $i
+  checkshape r_$i
+  if {[regexp "Faulties" [bopargcheck r_$i]]} {
+    puts "Error: bopargcheck has found some faulties in r_$i"
+  }
+}
+
+checknbshapes r_0 -solid 1 -shell 1 -face 8 -wire 8
+checkprops r_0 -s 0.28083 -v 0.00131782
+
+checknbshapes r_1 -solid 1 -shell 1 -face 20 -wire 20
+checkprops r_1 -s 0.28086 -v 0.00132012
+
+checknbshapes r_2 -solid 1 -shell 1 -face 8 -wire 8
+checkprops r_2 -s 0.263808 -v 1.1489e-06
+
+checknbshapes r_3 -solid 1 -shell 1 -face 8 -wire 8
+checkprops r_3 -s 0.263808 -v 1.1489e-06
+
+checknbshapes r_4 -vertex 12 -edge 18
+checkprops r_4 -l 3.47027
+checksection r_4 -r 12
+
+# COMMON
+copy r_0 result
+checkmaxtol result -min_tol 6.0e-7
+checkview -display result -2d -path ${imagedir}/${test_image}.png
+
diff --git a/tests/bugs/modalg_7/bug25082_2 b/tests/bugs/modalg_7/bug25082_2
new file mode 100644 (file)
index 0000000..bd42246
--- /dev/null
@@ -0,0 +1,45 @@
+puts "========"
+puts "0025082: bopcommon returns different result on Windows and Linux system"
+puts "========"
+puts ""
+
+puts "TODO CR29596 ALL: Warning: Intersection of pair of shapes has failed"
+
+restore [locate_data_file bug25054_shape1.brep] b1
+restore [locate_data_file bug25054_shape2.brep] b2
+
+bclearobjects
+bcleartools
+baddobjects b2
+baddtools b1
+
+bfillds
+
+for {set i 0} { $i <= 4 } { incr i} {
+  bbop r_$i $i
+  checkshape r_$i
+  if {[regexp "Faulties" [bopargcheck r_$i]]} {
+    puts "Error: bopargcheck has found some faulties in r_$i"
+  }
+}
+
+checknbshapes r_0 -solid 1 -shell 1 -face 8 -wire 8
+checkprops r_0 -s 0.28083 -v 0.00131782
+
+checknbshapes r_1 -solid 1 -shell 1 -face 20 -wire 20
+checkprops r_1 -s 0.28086 -v 0.00132012
+
+checknbshapes r_2 -solid 1 -shell 1 -face 8 -wire 8
+checkprops r_2 -s 0.263808 -v 1.1489e-06
+
+checknbshapes r_3 -solid 1 -shell 1 -face 8 -wire 8
+checkprops r_3 -s 0.263808 -v 1.1489e-06
+
+checknbshapes r_4 -vertex 12 -edge 18
+checkprops r_4 -l 3.47027
+checksection r_4 -r 12
+
+# COMMON
+copy r_0 result
+checkmaxtol result -min_tol 6.0e-7
+checkview -display result -2d -path ${imagedir}/${test_image}.png