0026742: Update test cases for using checknbshapes procedure instead of global variables
[occt.git] / tests / bugs / modalg_2 / bug5805_21
CommitLineData
3bea4c16 1
2puts "============"
3puts "OCC5805"
4puts "============"
5
6#######################################################################
7# BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
8#######################################################################
9
10set BugNumber OCC5805
11
12# pbsplinecurve1
13pbsplinecurve pbc1 3 9 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 -1 0 0 1 -2 2 0 1 0 1 0 1 2 2 0 1 1 0 0 1 2 -2 0 1 0 -1 0 1 -2 -2 0 1
14mkedge e1 pbc1
15wire UpCover e1
16
17# pbsplinecurve1
18copy e1 e2
19ttranslate e2 0 0 20
20wire BottomCover e2
21
22set issolid 1
23set isruled 1
24if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
25 puts "Faulty ${BugNumber} : thrusections is wrong"
26
27}
28
29set distance -0.1
30catch { OFFSETSHAPE $distance {} $calcul $type }
31
32
94f71cad 33set square 253.902
3bea4c16 34
a4eba920 35checknbshapes result -vertex 2 -edge 3 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 13
3bea4c16 36
37set index [lsearch [whatis s] Closed]
38if {$index == -1} {
39 puts "Faulty ${BugNumber} : s is not Closed shape"
40
41}
42
43set index [lsearch [whatis result] Closed]
44if {$index == -1} {
45 puts "Faulty ${BugNumber} : result is not Closed shape"
46
47}
48
49
50set 2dviewer 0