0025138: SIGSEGV when sweeping along helix
[occt.git] / tests / bugs / modalg_3 / bug5805_58
1 puts "============"
2 puts "OCC5805"
3 puts "============"
4
5 #######################################################################
6 # BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
7 #######################################################################
8
9 set BugNumber OCC5805
10
11 set z1 10
12 set z2 -10
13
14 # circle1
15 circle c1 0 0 ${z1} 5
16 mkedge ec1 c1
17 wire UpCover ec1
18
19 # circle2
20 circle c2 0 0 ${z2} 5
21 mkedge ec2 c2
22 wire BottomCover ec2
23
24 set issolid 1
25 set isruled 1
26 if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
27    puts "Faulty ${BugNumber} : thrusections is wrong"
28    
29 }
30
31 set distance -0.5
32 catch { OFFSETSHAPE $distance {s_2} $calcul $type }
33
34
35 checkprops result -s 1336.75
36 checkshape result
37 checknbshapes result -vertex 4 -edge 6 -wire 6 -face 5 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 23
38
39 set index [lsearch [whatis s] Closed]
40 if {$index == -1} {
41   puts "Faulty ${BugNumber} : s is not Closed shape"
42   
43 }
44
45 set index [lsearch [whatis result] Closed]
46 if {$index == -1} {
47   puts "Faulty ${BugNumber} : result is not Closed shape"
48   
49 }
50
51
52 checkview -display result -2d -path ${imagedir}/${test_image}.png