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