Deleted unnecessary TODOs in test cases with improvements on MacOS platform. Small...
[occt.git] / tests / bugs / modalg_4 / bug62
CommitLineData
d9e8bb08 1set os "ALL"
2
3if {[array get env os_type] != ""} {
4 set os $env(os_type)
5}
6
7if {[string compare $os "MacOS"] == 0} {
5dc2ede9 8 #puts "TODO #23828 MacOS: Tcl Exception: sh is not a topological shape!!!"
9 #puts "TODO #23828 MacOS: TEST INCOMPLETE"
d9e8bb08 10} else {
b4109929 11 #puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_"
12 #puts "TODO OCC12345 ALL: Error : The square of result shape is"
d9e8bb08 13}
a87752f3 14
15puts "================"
16puts "OCC62"
17puts "BUC61001"
18puts "================"
19
20cpulimit 1400
21restore [locate_data_file OCC62.brep] sh
22
23explode sh
352ffd73 24checkshape sh
a87752f3 25
26bfuse res1 sh_1 sh_3
352ffd73 27checkshape res1
a87752f3 28
29bfuse res2 res1 sh_2
352ffd73 30checkshape res2
a87752f3 31
32bfuse res3 res2 sh_6
352ffd73 33checkshape res3
a87752f3 34
35bfuse res4 res3 sh_4
352ffd73 36checkshape res4
a87752f3 37
38bfuse res5 res4 sh_5
352ffd73 39checkshape res5
a87752f3 40
41renamevar res5 result
42
91bb31f3 43set OCC62_square 1.23063e+7
44puts "The expected square is ${OCC62_square}"
45
46set sq_persent 0.03
47regexp {Mass +: +([-0-9.+eE]+)} [sprops result] full m
48if { (${OCC62_square} != 0 && [expr abs(${OCC62_square} - $m)/${OCC62_square}] > ${sq_persent}) || (${OCC62_square} == 0 && $m != 0) } {
49 puts "Error : The square of result shape is $m"
50}
51
a87752f3 52set 2dviewer 0