48cc825e |
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 | box b1 0 0 0 1 2 3 |
10 | box b2 4 0 0 3 1 2 |
11 | vinit drv1/v1/v1 |
12 | vsetdispmode 1 |
13 | vdisplay b1 b2 |
14 | vfit |
15 | vinit drv1/v2/v1 |
16 | vsetdispmode 1 |
17 | vdisplay b1 b2 |
18 | vfit |
19 | vsetcolor b1 RED |
20 | vactivate drv1/v1/v1 |
21 | vdump v1.png |
22 | vactivate drv1/v2/v1 |
23 | vdump v2.png |
24 | set info [diffimage v1.png v2.png 0 0 0] |
25 | if { $info != 0 } { |
26 | puts "Error: images v1 and v2 are different" |
27 | } else { |
28 | puts "OK: images v1 and v2 are similar" |
29 | } |
30 | |
31 | set only_screen 1 |