From 1709b024501eaed862c91fd95e7369791b6ca7d4 Mon Sep 17 00:00:00 2001 From: emv Date: Wed, 17 May 2017 08:18:44 +0300 Subject: [PATCH] 0028745: Wrong results of Boolean operations on hemisphere solids Test cases for the issue. --- tests/bugs/modalg_6/bug28745_1 | 22 ++++++++++++++++++++++ tests/bugs/modalg_6/bug28745_2 | 22 ++++++++++++++++++++++ tests/bugs/modalg_6/bug28745_3 | 22 ++++++++++++++++++++++ tests/bugs/modalg_6/bug28745_4 | 22 ++++++++++++++++++++++ tests/bugs/modalg_6/bug28745_5 | 22 ++++++++++++++++++++++ tests/bugs/modalg_6/bug28745_6 | 22 ++++++++++++++++++++++ tests/bugs/modalg_6/bug28745_7 | 22 ++++++++++++++++++++++ 7 files changed, 154 insertions(+) create mode 100644 tests/bugs/modalg_6/bug28745_1 create mode 100644 tests/bugs/modalg_6/bug28745_2 create mode 100644 tests/bugs/modalg_6/bug28745_3 create mode 100644 tests/bugs/modalg_6/bug28745_4 create mode 100644 tests/bugs/modalg_6/bug28745_5 create mode 100644 tests/bugs/modalg_6/bug28745_6 create mode 100644 tests/bugs/modalg_6/bug28745_7 diff --git a/tests/bugs/modalg_6/bug28745_1 b/tests/bugs/modalg_6/bug28745_1 new file mode 100644 index 0000000000..7bd6a07a84 --- /dev/null +++ b/tests/bugs/modalg_6/bug28745_1 @@ -0,0 +1,22 @@ +puts "========" +puts "OCC28745" +puts "========" +puts "" +#################################################################### +# Wrong results of Boolean operations on hemisphere solids +#################################################################### + +restore [locate_data_file bug28745_case1_cut.brep] b +explode b +bclearobjects +bcleartools +baddobjects b_1 +baddtools b_2 +bfillds +bbop result 2 + +checkshape result +checkprops result -s 5.2767e+006 -v 7.83594e+008 +checknbshapes result -face 2 -shell 1 -solid 1 + +checkview -display result -2d -path ${imagedir}/${test_image}.png diff --git a/tests/bugs/modalg_6/bug28745_2 b/tests/bugs/modalg_6/bug28745_2 new file mode 100644 index 0000000000..502609c989 --- /dev/null +++ b/tests/bugs/modalg_6/bug28745_2 @@ -0,0 +1,22 @@ +puts "========" +puts "OCC28745" +puts "========" +puts "" +#################################################################### +# Wrong results of Boolean operations on hemisphere solids +#################################################################### + +restore [locate_data_file bug28745_case2_cut.brep] b +explode b +bclearobjects +bcleartools +baddobjects b_1 +baddtools b_2 +bfillds +bbop result 2 + +checkshape result +checkprops result -s 2.59907e+006 -v 1.75861e+008 +checknbshapes result -face 2 -shell 1 -solid 1 + +checkview -display result -2d -path ${imagedir}/${test_image}.png diff --git a/tests/bugs/modalg_6/bug28745_3 b/tests/bugs/modalg_6/bug28745_3 new file mode 100644 index 0000000000..ee25e67ed1 --- /dev/null +++ b/tests/bugs/modalg_6/bug28745_3 @@ -0,0 +1,22 @@ +puts "========" +puts "OCC28745" +puts "========" +puts "" +#################################################################### +# Wrong results of Boolean operations on hemisphere solids +#################################################################### + +restore [locate_data_file bug28745_case3_common.brep] b +explode b +bclearobjects +bcleartools +baddobjects b_1 +baddtools b_2 +bfillds +bbop result 0 + +checkshape result +checkprops result -s 7.99947e+006 -v 2.05023e+009 +checknbshapes result -face 2 -shell 1 -solid 1 + +checkview -display result -2d -path ${imagedir}/${test_image}.png diff --git a/tests/bugs/modalg_6/bug28745_4 b/tests/bugs/modalg_6/bug28745_4 new file mode 100644 index 0000000000..9f791220bc --- /dev/null +++ b/tests/bugs/modalg_6/bug28745_4 @@ -0,0 +1,22 @@ +puts "========" +puts "OCC28745" +puts "========" +puts "" +#################################################################### +# Wrong results of Boolean operations on hemisphere solids +#################################################################### + +restore [locate_data_file bug28745_case4_cut.brep] b +explode b +bclearobjects +bcleartools +baddobjects b_1 +baddtools b_2 +bfillds +bbop result 2 + +checkshape result +checkprops result -s 1.10175e+006 -v 4.81128e+007 +checknbshapes result -face 3 -shell 1 -solid 1 + +checkview -display result -2d -path ${imagedir}/${test_image}.png diff --git a/tests/bugs/modalg_6/bug28745_5 b/tests/bugs/modalg_6/bug28745_5 new file mode 100644 index 0000000000..830082b537 --- /dev/null +++ b/tests/bugs/modalg_6/bug28745_5 @@ -0,0 +1,22 @@ +puts "========" +puts "OCC28745" +puts "========" +puts "" +#################################################################### +# Wrong results of Boolean operations on hemisphere solids +#################################################################### + +restore [locate_data_file bug28745_case5_cut.brep] b +explode b +bclearobjects +bcleartools +baddobjects b_1 +baddtools b_2 +bfillds +bbop result 2 + +checkshape result +checkprops result -s 6.71804e+006 -v 1.39439e+009 +checknbshapes result -face 3 -shell 1 -solid 1 + +checkview -display result -2d -path ${imagedir}/${test_image}.png diff --git a/tests/bugs/modalg_6/bug28745_6 b/tests/bugs/modalg_6/bug28745_6 new file mode 100644 index 0000000000..8dbac53d47 --- /dev/null +++ b/tests/bugs/modalg_6/bug28745_6 @@ -0,0 +1,22 @@ +puts "========" +puts "OCC28745" +puts "========" +puts "" +#################################################################### +# Wrong results of Boolean operations on hemisphere solids +#################################################################### + +restore [locate_data_file bug28745_case6_cut.brep] b +explode b +bclearobjects +bcleartools +baddobjects b_1 +baddtools b_2 +bfillds +bbop result 2 + +checkshape result +checkprops result -s 6.71804e+006 -v 1.39439e+009 +checknbshapes result -face 3 -shell 1 -solid 1 + +checkview -display result -2d -path ${imagedir}/${test_image}.png diff --git a/tests/bugs/modalg_6/bug28745_7 b/tests/bugs/modalg_6/bug28745_7 new file mode 100644 index 0000000000..cf662cad5b --- /dev/null +++ b/tests/bugs/modalg_6/bug28745_7 @@ -0,0 +1,22 @@ +puts "========" +puts "OCC28745" +puts "========" +puts "" +#################################################################### +# Wrong results of Boolean operations on hemisphere solids +#################################################################### + +restore [locate_data_file bug28745_case7_cut.brep] b +explode b +bclearobjects +bcleartools +baddobjects b_1 +baddtools b_2 +bfillds +bbop result 2 + +checkshape result +checkprops result -s 1.10175e+006 -v 4.81128e+007 +checknbshapes result -face 3 -shell 1 -solid 1 + +checkview -display result -2d -path ${imagedir}/${test_image}.png