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