0026855: Draw commands to debug Boolean Operations Algorithm
[occt.git] / tests / bugs / modalg_2 / bug5805_12
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# ellipse1
12ellipse ell 10 0 0 1 0 0 5 3
13mkedge ee1 ell
14wire UpCover ee1
15
16# ellipse2
17copy ee1 ee2
18ttranslate ee2 -20 0 0
19wire BottomCover ee2
20
21set issolid 1
22set isruled 1
23if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
24 puts "Faulty ${BugNumber} : thrusections is wrong"
25
26}
27
28set distance -0.5
29catch { OFFSETSHAPE $distance {s_2 s_3} $calcul $type }
30
31
32set square 982.254
33
a4eba920 34checknbshapes result -vertex 3 -edge 5 -wire 6 -face 4 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 20
3bea4c16 35
36set index [lsearch [whatis s] Closed]
37if {$index == -1} {
38 puts "Faulty ${BugNumber} : s is not Closed shape"
39
40}
41
42set index [lsearch [whatis result] Closed]
43if {$index == -1} {
44 puts "Faulty ${BugNumber} : result is not Closed shape"
45
46}
47
48
49set 2dviewer 0