0027481: [Regression to OCCT 6.6.0] Modeling Algorithms - incorrect CUT on two solids
[occt.git] / tests / bugs / modalg_2 / bug5805_31
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} 30
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_3} $calcul $type }
33
34
35 checkprops result -s 7157.43 
36 checkshape result
37
38 checknbshapes result -vertex 4 -edge 6 -wire 6 -face 5 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 23
39
40 set index [lsearch [whatis s] Closed]
41 if {$index == -1} {
42   puts "Faulty ${BugNumber} : s is not Closed shape"
43   
44 }
45
46 set index [lsearch [whatis result] Closed]
47 if {$index == -1} {
48   puts "Faulty ${BugNumber} : result is not Closed shape"
49   
50 }
51
52
53 checkview -display result -2d -path ${imagedir}/${test_image}.png