0031304: Configuration - TKACIS building failure due to duplicated symbol GeomFillFus...
[occt.git] / tests / bugs / modalg_2 / bug5805_33
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 x1 10
12 set x2 -10
13
14 # ellipse1
15 ellipse ell1 ${x1} 0 0 1 0 0 5 3
16 mkedge ee1 ell1
17 wire UpCover ee1
18
19 # ellipse2
20 ellipse ell2 ${x2} 0 0 1 0 0 4 2
21 mkedge ee2 ell2
22 wire BottomCover ee2
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 {} $calcul $type }
33
34
35 checkprops result -s 443.123
36 checkshape result
37
38 checknbshapes result -vertex 2 -edge 3 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 13
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