0026742: Update test cases for using checknbshapes procedure instead of global variables
[occt.git] / tests / thrusection / specific / A8
1 puts "============"
2 puts "OCC7166"
3 puts "============"
4 puts ""
5 #######################################################################
6 # Improvement of API of ThruSection
7 #######################################################################
8
9 set BugNumber OCC7166
10
11 #
12 #              * v2
13 #             / \
14 #           /     \
15 #         /    *    \
16 #       /    v4, v5   \
17 #     *----------------* v3
18 #     v1
19 #     
20
21 vertex v1 0 0 0
22 vertex v2 5 5 0
23 vertex v3 10 0 0
24
25 vertex v4 5 2.5 20
26 vertex v5 5 2.5 -20
27
28 edge e1 v1 v2
29 edge e2 v2 v3
30 edge e3 v3 v1
31
32 wire w1 e1 e2 e3
33
34 set issolid 1
35 set isruled 0
36 thrusections result ${issolid} ${isruled} v4 w1 v5
37
38
39 set square 646.621
40
41
42 checknbshapes result -vertex 2 -edge 9 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 19
43
44
45 set index [lsearch [whatis result] Closed]
46 if {$index == -1} {
47   puts "Faulty ${BugNumber} : result is not Closed shape"
48   
49 }
50
51 set 3dviewer 0
52