0025138: SIGSEGV when sweeping along helix
[occt.git] / tests / bugs / modalg_4 / bug827_3
CommitLineData
352ffd73 1pload QAcommands
2
3puts "======="
4puts "OCC827"
5puts "======="
6puts ""
7####################################
8## BRepAlgoAPI_Fuse fails on cylinder and torus
9####################################
10
11#
12# a1 - Cylinder
13# a2 - Torus1
14# a3 - Torus1
15# res1 - Fuse(Torus1 & Cylinder)
16# res2 - Fuse(Torus2 & res1)
17#
18
19if { [ catch { set info_result [OCC827 a1 a2 a3 a4 a5] } ] } {
20 puts "Faulty OCC827"
21} else {
22 checkshape a1
23 checkshape a2
24 checkshape a3
25 bop a2 a1
26 bopfuse res1
27 checkshape res1
28 set ExplodeList [explode res1]
29 if {[llength ${ExplodeList}] < 1} {
30 puts "Faulty OCC827 : Resulting shape is empty COMPOUND"
31 }
32 bop a3 res1
33 bopfuse result
34
35 set ExplodeList [explode result]
36 if {[llength ${ExplodeList}] < 1} {
37 puts "Faulty OCC827 : Resulting shape is empty COMPOUND"
38 }
39}
40
58cf74e0 41checkprops result -s 11847.7
42checkshape result
5747059b 43checkview -display result -2d -path ${imagedir}/${test_image}.png
352ffd73 44