0026833: Create command checkview containing all viewer types
[occt.git] / tests / thrusection / specific / A9
CommitLineData
3bea4c16 1puts "============"
2puts "OCC7166"
3puts "============"
4puts ""
5#######################################################################
6# Improvement of API of ThruSection
7#######################################################################
8
9set BugNumber OCC7166
10
11circle c1 0 0 0 10
12mkedge e1 c1
13wire w1 e1
14
15vertex v1 0 0 20
16vertex v2 0 0 -20
17
18set issolid 0
19set isruled 1
20catch {thrusections result ${issolid} ${isruled} v1 w1 v2}
21
22
58cf74e0 23checkprops result -s 1404.96
3bea4c16 24
a4eba920 25checknbshapes result -vertex 3 -edge 5 -wire 2 -face 2 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 13
3bea4c16 26
27
28set index [lsearch [whatis result] Closed]
29if {$index == -1} {
30 puts "Faulty ${BugNumber} : result is not Closed shape"
31
32}
33
3bea4c16 34