0030694: Data Exchange - support non-standard GB2312-encoded STEP files
[occt.git] / tests / bugs / step / bug30087
1 puts "# ====================================================================="
2 puts "# 30087: Data Exchange, STEP - invalid result of translation of assembly when relating and related products are mixed in the SRR entity"
3 puts "# ====================================================================="
4 puts ""
5
6 set filepath [locate_data_file bug30087.stp]
7 stepread $filepath a *
8 tpcompound result
9
10 puts "Check dimensions of the result -- will be different if some parts are misplaced"
11 set values [bounding result]
12 set expected { -0.66 -0.33 -11. 70.66 140.66 10. }
13 set components {XMin YMin ZMin XMax YMax ZMax }
14 for {set i 0} {$i < 6} {incr i} {
15   checkreal [lindex $components $i] [lindex $values $i] [lindex $expected $i] 0.1 0
16 }
17
18 puts "Make snapshot to have visual check as well"
19 checkview -display result -2d -path ${imagedir}/${test_image}.png