2 puts "================"
4 puts "================"
6 #######################################################################################
7 # Gradient background is clipped by planes
8 ######################################################################################
10 set BugNumber OCC22906
24 vbackground -gradient RED BLUE -gradientMode DIAGONAL2
25 set Color1 [vreadpixel ${x1} ${y1} rgb]
26 set Color2 [vreadpixel ${x2} ${y2} rgb]
27 set Color3 [vreadpixel ${x3} ${y3} rgb]
28 set Color4 [vreadpixel ${x4} ${y4} rgb]
29 vclipplane create pln1
30 vclipplane change pln1 equation 1 0 0 -0.1
31 vclipplane set pln1 view Driver1/Viewer1/View1
35 set ColorRes1 [vreadpixel ${x1} ${y1} rgb]
36 set ColorRes2 [vreadpixel ${x2} ${y2} rgb]
37 set ColorRes3 [vreadpixel ${x3} ${y3} rgb]
38 set ColorRes4 [vreadpixel ${x4} ${y4} rgb]
40 if { ${Color1} == ${ColorRes1} && ${Color2} == ${ColorRes2} && ${Color3} == ${ColorRes3} && ${Color4} == ${ColorRes4}} {
41 puts "OK ${BugNumber}"
43 puts "Faulty ${BugNumber}"
46 checkview -screenshot -3d -path ${imagedir}/${test_image}.png