0014531: Boolean Operation Algorithm fails
[occt.git] / tests / bugs / modalg_3 / bug5805_57
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 z1 10
12set z2 -10
13
14# circle1
15circle c1 0 0 ${z1} 5
16mkedge ec1 c1
17wire UpCover ec1
18
19# circle2
20circle c2 0 0 ${z2} 5
21mkedge ec2 c2
22wire BottomCover ec2
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 {} $calcul $type }
33
34
58cf74e0 35checkprops result -s 664.447
36checkshape result
a4eba920 37checknbshapes result -vertex 2 -edge 3 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 13
3bea4c16 38
39set index [lsearch [whatis s] Closed]
40if {$index == -1} {
41 puts "Faulty ${BugNumber} : s is not Closed shape"
42
43}
44
45set index [lsearch [whatis result] Closed]
46if {$index == -1} {
47 puts "Faulty ${BugNumber} : result is not Closed shape"
48
49}
50
51
5747059b 52checkview -display result -2d -path ${imagedir}/${test_image}.png