0031304: Configuration - TKACIS building failure due to duplicated symbol GeomFillFus...
[occt.git] / tests / bugs / modalg_3 / bug5805_54
CommitLineData
3bea4c16 1puts "============"
2puts "OCC5805"
3puts "============"
4
5#######################################################################
6# BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
7#######################################################################
8
9set BugNumber OCC5805
10
11#
12# * v3
13# | \
14# | \
15# | \
16# | \
17# | /* v2
18# | /
19# | /
20# | /
21# *
22# v1
23#
24
25set z1 10
26set z2 -10
27
28# triangle1
29polyline UpCover 0 0 ${z1} 5 5 ${z1} 0 10 ${z1} 0 0 ${z1}
30
31# triangle2
32polyline BottomCover 0 0 ${z2} 5 5 ${z2} 0 10 ${z2} 0 0 ${z2}
33
34set issolid 1
35set isruled 1
36if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
37 puts "Faulty ${BugNumber} : thrusections is wrong"
38
39}
40
41set distance -0.5
42catch { OFFSETSHAPE $distance {} $calcul $type }
43
44
58cf74e0 45checkprops result -s 376.733
46checkshape result
a4eba920 47checknbshapes result -vertex 6 -edge 9 -wire 5 -face 5 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 27
3bea4c16 48
49set index [lsearch [whatis s] Closed]
50if {$index == -1} {
51 puts "Faulty ${BugNumber} : s is not Closed shape"
52
53}
54
55set index [lsearch [whatis result] Closed]
56if {$index == -1} {
57 puts "Faulty ${BugNumber} : result is not Closed shape"
58
59}
60
61
5747059b 62checkview -display result -2d -path ${imagedir}/${test_image}.png