0027961: Visualization - remove unused and no more working OpenGl_AVIWriter
[occt.git] / tests / bugs / vis / bug2883_2
CommitLineData
48cc825e 1puts "=========="
2puts "OCC2883"
3puts "=========="
4puts ""
5########################################################################
6# It is impossible to set material, color and transparency to compound
7########################################################################
8
7a7e8cf1 9set FilePath_v1 ${imagedir}/bug2883_2_v1.png
10set FilePath_v2 ${imagedir}/bug2883_2_v2.png
11
12file delete -force ${FilePath_v1}
13file delete -force ${FilePath_v2}
14
48cc825e 15box b1 0 0 0 1 2 3
16box b2 4 0 0 3 1 2
17vinit drv1/v1/v1
18vsetdispmode 1
19vdisplay b1 b2
20vfit
21vinit drv1/v2/v1
22vsetdispmode 1
23vdisplay b1 b2
24vfit
25vsetcolor b1 RED
26vactivate drv1/v1/v1
7a7e8cf1 27vdump ${FilePath_v1}
48cc825e 28vactivate drv1/v2/v1
7a7e8cf1 29vdump ${FilePath_v2}
30set info [diffimage ${FilePath_v1} ${FilePath_v2} 0 0 0]
48cc825e 31if { $info != 0 } {
32 puts "Error: images v1 and v2 are different"
33} else {
34 puts "OK: images v1 and v2 are similar"
35}
36
5747059b 37checkview -screenshot -3d -path ${imagedir}/${test_image}.png