0024387: Tests - use system-independent fonts in test cases
[occt.git] / tests / bugs / vis / bug2883_2
1 puts "=========="
2 puts "OCC2883"
3 puts "=========="
4 puts ""
5 ########################################################################
6 # It is impossible to set material, color and transparency to compound
7 ########################################################################
8
9 set FilePath_v1 ${imagedir}/bug2883_2_v1.png
10 set FilePath_v2 ${imagedir}/bug2883_2_v2.png
11
12 file delete -force ${FilePath_v1}
13 file delete -force ${FilePath_v2}
14
15 box b1 0 0 0 1 2 3
16 box b2 4 0 0 3 1 2
17 vinit drv1/v1/v1
18 vsetdispmode 1
19 vdisplay b1 b2
20 vfit
21 vinit drv1/v2/v1
22 vsetdispmode 1
23 vdisplay b1 b2
24 vfit
25 vsetcolor b1 RED
26 vactivate drv1/v1/v1
27 vdump ${FilePath_v1}
28 vactivate drv1/v2/v1
29 vdump ${FilePath_v2}
30 set info [diffimage ${FilePath_v1} ${FilePath_v2} 0 0 0]
31 if { $info != 0 } {
32   puts "Error: images v1 and v2 are different"
33 } else {
34   puts "OK: images v1 and v2 are similar"
35 }
36
37 set only_screen 1