0025945: Make stable checking of shape global properties in tests
[occt.git] / tests / thrusection / specific / F9
CommitLineData
a4eba920 1puts "TODO OCC7166 ALL: Error : is WRONG because number of "
3bea4c16 2
3puts "============"
4puts "OCC7166"
5puts "============"
6puts ""
7#######################################################################
8# Improvement of API of ThruSection
9#######################################################################
10
11set BugNumber OCC7166
12
13pbsplinecurve 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
14mkedge e1 pbc1
15wire w1 e1
16
17#vertex v1 40 0 20
18#vertex v2 40 0 -20
19circle c1 40 0 20 0 0 -1 -1 1 0 0.1
20mkedge ec1 c1
21wire wc1 ec1
22
23circle c2 40 0 -20 0 0 -1 -1 1 0 0.1
24mkedge ec2 c2
25wire wc2 ec2
26
27set issolid 1
28set isruled 1
29#catch {thrusections result ${issolid} ${isruled} v1 w1 v2}
30catch {thrusections result ${issolid} ${isruled} wc1 w1 wc2}
31
32
58cf74e0 33checkprops result -s 419.166
3bea4c16 34
35
a4eba920 36checknbshapes result -vertex 6 -edge 10 -wire 6 -face 6 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 30
3bea4c16 37
38
39set index [lsearch [whatis result] Closed]
40if {$index == -1} {
41 puts "Faulty ${BugNumber} : result is not Closed shape"
42
43}
44
45set 3dviewer 0
46