From 3da62e0ec333a20aa35284aab8272f2e4f918b35 Mon Sep 17 00:00:00 2001 From: mkv Date: Thu, 10 Dec 2015 15:53:28 +0300 Subject: [PATCH] 0026334: BRepOffsetAPI_MakePipeShell returns the wrong shape --- tests/bugs/modalg_6/bug26334 | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 tests/bugs/modalg_6/bug26334 diff --git a/tests/bugs/modalg_6/bug26334 b/tests/bugs/modalg_6/bug26334 new file mode 100755 index 0000000000..628c43b12a --- /dev/null +++ b/tests/bugs/modalg_6/bug26334 @@ -0,0 +1,37 @@ +puts "============" +puts "OCC26334" +puts "============" +puts "" +####################################################################### +# BRepOffsetAPI_MakePipeShell returns the wrong shape +####################################################################### + +restore [locate_data_file bug26334_pw1.brep] pw1 +restore [locate_data_file bug26334_pw2.brep] pw2 +restore [locate_data_file bug26334_pw3.brep] pw3 + +mksweep pw1 +addsweep pw2 +addsweep pw3 +setsweep -DT + +buildsweep result + +set square 1.72246 + +set nbshapes_expected " +Number of shapes in shape + VERTEX : 10 + EDGE : 13 + WIRE : 4 + FACE : 4 + SHELL : 1 + SOLID : 0 + COMPSOLID : 0 + COMPOUND : 0 + SHAPE : 32 +" + +checknbshapes result -ref ${nbshapes_expected} -t -m "Result obtained by BRepOffsetAPI_MakePipeShell" + +set 2dviewer 1