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