From 32c408d76a41ca0e86284d1459bf84ab67c449a5 Mon Sep 17 00:00:00 2001 From: nbv Date: Thu, 1 Nov 2018 14:32:08 +0300 Subject: [PATCH] 0025082: bopcommon returns different result on Windows and Linux system Test cases have been created because the problem is not reproduced on current MASTER --- tests/bugs/modalg_7/bug25082_1 | 46 ++++++++++++++++++++++++++++++++++ tests/bugs/modalg_7/bug25082_2 | 45 +++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 tests/bugs/modalg_7/bug25082_1 create mode 100644 tests/bugs/modalg_7/bug25082_2 diff --git a/tests/bugs/modalg_7/bug25082_1 b/tests/bugs/modalg_7/bug25082_1 new file mode 100644 index 0000000000..b668247366 --- /dev/null +++ b/tests/bugs/modalg_7/bug25082_1 @@ -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 index 0000000000..bd42246f82 --- /dev/null +++ b/tests/bugs/modalg_7/bug25082_2 @@ -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