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