0027986: Visualization - AIS_InteractiveContext::SetLocation() does not update dynami...
[occt.git] / tests / bugs / vis / bug11615
CommitLineData
e54706ed 1puts "============"
2puts "OCC11615"
3puts "============"
4puts ""
5######################################################
6# Anisotropic scaling in 3D view
7######################################################
8
9set BugNumber OCC11615
10
11box b 10 10 10
12vinit
13vdisplay b
14vfit
15vscale 1 1 1
e54706ed 16
17set x1 [list 165 340 70]
18set y1 [list 384 283 79]
ccadc126 19vaspects -setwidth 5
e54706ed 20puts ""
21for {set i 0} {$i < 3} {incr i} {
22 set x_coord [lindex ${x1} $i]
23 set y_coord [lindex ${y1} $i]
ccadc126 24 if { "[vreadpixel $x_coord $y_coord rgb name]" != "YELLOW" } {
25 puts "Error : color is not yellow"
26 }
e54706ed 27}
28
29vscale 0.5 1.5 0.7
30vfit
e54706ed 31
32set x2 [list 80 390 25]
33set y2 [list 390 218 167]
34
e54706ed 35puts ""
36for {set i 0} {$i < 3} {incr i} {
37 set x_coord [lindex ${x2} $i]
38 set y_coord [lindex ${y2} $i]
ccadc126 39 if { "[vreadpixel $x_coord $y_coord rgb name]" != "YELLOW" } {
40 puts "Error : color is not yellow"
41 }
e54706ed 42}
43
5747059b 44checkview -screenshot -3d -path ${imagedir}/${test_image}.png