0031673: Draw Harness, ViewerTest - command vlocation applies transformation in oppos...
[occt.git] / tests / bugs / vis / bug31673
CommitLineData
dbc8becf 1puts "============"
2puts "0031673: Draw Harness, ViewerTest - vlocation -rotate is applied in opposite order"
3puts "============"
4puts ""
5
6pload MODELING VISUALIZATION
7box b -1 -1 -1 2 2 2
8explode b F
9vclear
10vinit View1
11vdisplay -dispMode 0 b_1 b_3 b_4 b_6
12vdisplay -dispMode 1 b_2 b_5
13vfit
14vzoom 0.4
15vlocation b_2 -reset
16vlocation b_5 -reset
17vlocation b_2 -rotate 1 -1 -1 0 1 0 90
18vlocation b_2 -rotate -1 -1 -1 0 1 0 90
19vlocation b_5 -rotate -1 -1 -1 0 1 0 90
20if { [vreadpixel 170 380 -rgb -name] == "BLACK" } { puts "Error: wrong rotation" }
21
22vdump ${imagedir}/${casename}.png