0026742: Update test cases for using checknbshapes procedure instead of global variables
[occt.git] / tests / thrusection / specific / B3
1 puts "============"
2 puts "OCC7166"
3 puts "============"
4 puts ""
5 #######################################################################
6 # Improvement of API of ThruSection
7 #######################################################################
8
9 set BugNumber OCC7166
10
11 circle c1 0 0 0 10
12 mkedge e1 c1
13 wire w1 e1
14
15 vertex v1 0 0 20
16 vertex v2 0 0 -20
17
18 set issolid 1
19 set isruled 0
20 catch {thrusections result ${issolid} ${isruled} v1 w1 v2 }
21
22
23 set square 1829.23
24
25
26 checknbshapes result -vertex 2 -edge 3 -wire 1 -face 1 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 9
27
28
29 set index [lsearch [whatis result] Closed]
30 if {$index == -1} {
31   puts "Faulty ${BugNumber} : result is not Closed shape"
32   
33 }
34
35 set 3dviewer 0
36