]> OCCT Git - occt.git/commitdiff
0032445: BRepOffsetAPI_MakePipeShell crash when using -DT mode and DT_ShapeDivide...
authorakaftasev <akaftasev@opencascade.com>
Wed, 29 Jun 2022 07:32:52 +0000 (10:32 +0300)
committersmoskvin <smoskvin@opencascade.com>
Thu, 30 Jun 2022 16:33:35 +0000 (19:33 +0300)
Added test case

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

diff --git a/tests/bugs/modalg_7/bug32445 b/tests/bugs/modalg_7/bug32445
new file mode 100644 (file)
index 0000000..984f5f7
--- /dev/null
@@ -0,0 +1,28 @@
+puts "============================================"
+puts "0032445: BRepOffsetAPI_MakePipeShell crash when using -DT mode and DT_ShapeDivide on the spine"
+puts "============================================"
+puts ""
+
+restore [locate_data_file bug32445_spine.brep] s
+restore [locate_data_file bug32445_profile_1.brep] p1
+restore [locate_data_file bug32445_profile_2.brep] p2
+restore [locate_data_file bug32445_profile_3.brep] p3
+restore [locate_data_file bug32445_profile_4.brep] p4
+restore [locate_data_file bug32445_profile_5.brep] p5
+restore [locate_data_file bug32445_profile_6.brep] p6
+
+DT_ShapeDivide s s 0.01
+
+mksweep s 
+setsweep -DT
+addsweep p1
+addsweep p2
+addsweep p3
+addsweep p4
+addsweep p5
+addsweep p6
+
+buildsweep r -C -S
+
+checkshape r
+checkview -display r -2d -path ${imagedir}/${test_image}.png