0030694: Data Exchange - support non-standard GB2312-encoded STEP files
[occt.git] / tests / bugs / step / pro19895
CommitLineData
0e94a94e 1puts "=========="
2puts "PRO19895"
3puts "=========="
4
5#############################################################################
6## There is wrong tolerance after reading of the model in optimaze mode (C30). Retrive entity number 2139 from file
7## "bm4_db_punch_a.stp" and will obtaine tolerance. It is very big and isolains extend from entity.
8#############################################################################
9
10stepread [locate_data_file bm4_db_punch_a.stp] a *
11
12tpcompound b
13isos b 0
14isos b 3
15tpcompound result
16
17tpdraw 2139
18
352ffd73 19checkshape tp_2139
20checkshape tp_2139 r
0e94a94e 21
22set MaxTolerance [ lindex [ split [ lindex [tolerance tp_2139] 1 ] = ] 1 ]
23puts "MaxTolerance = $MaxTolerance"
24if { $MaxTolerance > 1 } {
25 puts "Error : Tolerance of shape is more then 1.0"
26}
27
5747059b 28checkview -display result -2d -path ${imagedir}/${test_image}.png
0e94a94e 29