0031189: Draw Harness, ViewerTest - send messages to Message::DefaultMessenger()
[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
aaf8d6a9 14vbackground -gradient B4C8FF B4B4B4 -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
ba00aab7 22if { [vreadpixel 100 300 -rgb -name] != "GRAY75" } { puts "Error: gradient background is not displayed" }
71d8ccc7 23
24vdump $imagedir/${casename}.png