0030592: Draw Harness, ViewerTest - provide vbackground command unifying vsetbg,...
[occt.git] / tests / bugs / vis / bug27836
CommitLineData
71d8ccc7 1puts "========"
2puts "Gradient background is lost at some camera positions"
3puts "========"
4
5# Test case setup the camera in such a position,
6# so that background plane will be clipped by Z-range if not handled by Z-fit.
7
8pload MODELING VISUALIZATION
9box b 0 0 -100 100 90 10
10
11vclear
12vinit View1
13vaxo
293211ae 14vbackground -gradient 0.705882 0.784314 1 0.705882 0.705882 0.705882 -gradientMode VERTICAL
71d8ccc7 15vzbufftrihedron
16vdisplay -dispMode 1 b
17vsetlocation b 0 0 1000
18vfit
19
20vviewparams -scale 6.66 -eye 48 43 -210 -at 50 45 -95
21
22if { [vreadpixel 100 300 rgb name] != "GRAY74" } { puts "Error: gradient background is not displayed" }
23
24vdump $imagedir/${casename}.png