0025945: Make stable checking of shape global properties in tests
[occt.git] / tests / thrusection / specific / B7
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 40 0 20
16vertex v2 40 0 -20
17
18set issolid 1
19set isruled 0
20catch {thrusections result ${issolid} ${isruled} v1 w1 v2 }
21
22
58cf74e0 23checkprops result -s 2556.25
3bea4c16 24
25
a4eba920 26checknbshapes result -vertex 2 -edge 3 -wire 1 -face 1 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 9
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