From b357dcc2258c76c783fe0cf607a5df9ca2607aa4 Mon Sep 17 00:00:00 2001 From: bugmaster Date: Wed, 21 Sep 2016 10:58:11 +0300 Subject: [PATCH] 0014531: Boolean Operation Algorithm fails Adding test case --- tests/bugs/modalg_6/bug14531 | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 tests/bugs/modalg_6/bug14531 diff --git a/tests/bugs/modalg_6/bug14531 b/tests/bugs/modalg_6/bug14531 new file mode 100644 index 0000000000..10c72addb3 --- /dev/null +++ b/tests/bugs/modalg_6/bug14531 @@ -0,0 +1,41 @@ +puts "============" +puts "OCC14531" +puts "============" +puts "" +###################################################### +# Boolean Operation Algorithm fails +###################################################### + +pcylinder c 10 20 +pcone x 20 0 20 +trotate x 0 0 20 0 1 0 45 +ttranslate x 5 0 0 +ttranslate x 0 0 1 +ttranslate c -5 0 0 +explode c f +explode x f +copy c_1 a1 +copy x_1 a2 +fit +bop a1 a2 +bopfuse result + +checkshape result + +checkprops result -s 3033.79 + +set nbshapes_expected " +Number of shapes in result + VERTEX : 7 + EDGE : 12 + WIRE : 5 + FACE : 4 + SHELL : 0 + SOLID : 0 + COMPSOLID : 0 + COMPOUND : 1 + SHAPE : 29 +" +checknbshapes result -ref ${nbshapes_expected} -t -m "Result obtained by Boolean cut operation" + +checkview -display result -2d -path ${imagedir}/${test_image}.png