0025945: Make stable checking of shape global properties in tests
[occt.git] / tests / bugs / modalg_3 / bug605
CommitLineData
f1aa2b62 1
2puts "========================"
3puts " OCC605"
4puts "========================"
5puts ""
6##############################
7## No any faces in result of pipe command.
8##############################
c8ea5b8e 9pload ALL
f1aa2b62 10
11restore [locate_data_file OCC605a.brep] w1
c8ea5b8e 12settolerance w1 1.e-7
352ffd73 13checkshape w1
f1aa2b62 14restore [locate_data_file OCC605b.brep] w2
352ffd73 15checkshape w2
f1aa2b62 16
17if { [catch {pipe result w2 w1 } catch_result] } {
18 puts "Faulty OCC605: function PIPE works with exception."
19} else {
20 explode result f
21 set nom 0
22 set j 1
23 repeat 20 {
24 if { [regexp {FACE} [whatis result_$j]] != 1 } {
25 break
26 } else {
27 set nom [expr $nom + 1]
28 }
29 incr j
30 }
31 if { $nom == 0 } {
32 puts " Faulty OCC605: Result of PIPE operation is incorrect !!! "
33 } else {
34 puts "OCC605 OK : Result of PIPE operation is NOT empty shell!!! "
35 }
36}
37
58cf74e0 38checkprops result -s 20.6253
39checkshape result
f1aa2b62 40set 2dviewer 0