0029528: Visualization, TKOpenGl - allow defining sRGB textures
[occt.git] / tests / bugs / modalg_2 / bug5805_34
CommitLineData
3bea4c16 1puts "============"
2puts "OCC5805"
3puts "============"
4
5#######################################################################
6# BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
7#######################################################################
8
9set BugNumber OCC5805
10
11set x1 10
12set x2 -10
13
14# ellipse1
15ellipse ell1 ${x1} 0 0 1 0 0 5 3
16mkedge ee1 ell1
17wire UpCover ee1
18
19# ellipse2
20ellipse ell2 ${x2} 0 0 1 0 0 4 2
21mkedge ee2 ell2
22wire BottomCover ee2
23
24set issolid 1
25set isruled 1
26if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
27 puts "Faulty ${BugNumber} : thrusections is wrong"
28
29}
30
31set distance -0.5
32catch { OFFSETSHAPE $distance {s_2} $calcul $type }
33
34
58cf74e0 35checkprops result -s 906.895
36checkshape result
3bea4c16 37
a4eba920 38checknbshapes result -vertex 4 -edge 6 -wire 6 -face 5 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 23
3bea4c16 39
40set index [lsearch [whatis s] Closed]
41if {$index == -1} {
42 puts "Faulty ${BugNumber} : s is not Closed shape"
43
44}
45
46set index [lsearch [whatis result] Closed]
47if {$index == -1} {
48 puts "Faulty ${BugNumber} : result is not Closed shape"
49
50}
51
52
5747059b 53checkview -display result -2d -path ${imagedir}/${test_image}.png