0027986: Visualization - AIS_InteractiveContext::SetLocation() does not update dynami...
[occt.git] / tests / bugs / vis / bug24930
CommitLineData
735dc1d2 1puts "============"
2puts "OCC24930"
3puts "============"
4puts ""
5
6pload QAcommands
7
8box b 10 10 10
9vinit
10vdisplay b
11vsetdispmode b 1
12vfit
13
14#
15set anImage_1 ${imagedir}/${casename}_1.png
16vdump ${anImage_1}
17#
18
19# Enable texture
20vtexture b 0
21
22#
23set anImage_2 ${imagedir}/${casename}_2.png
24vdump ${anImage_2}
25#
26
27# Set new color
28vsetcolor b GREEN
29# Check pixel color
30checkcolor 205 180 0 0.64705884456634521 0
31
32#
33set anImage_3 ${imagedir}/${casename}_3.png
34vdump ${anImage_3}
35#
36# Reset color
37vunsetcolor b
38# Check pixel color
39checkcolor 205 180 0.608 0.431 0.071
40
41#
42set anImage_4 ${imagedir}/${casename}_4.png
43vdump ${anImage_4}
44#
45
46# Set new material
47vsetmaterial b silver
48# Check pixel color
49checkcolor 205 180 0.380 0.380 0.380
50
51#
52set anImage_5 ${imagedir}/${casename}_5.png
53vdump ${anImage_5}
54#
55
56# Unset material
57vunsetmaterial b
58# Check pixel color
59checkcolor 205 180 0.608 0.431 0.706
60
61#
62set anImage_6 ${imagedir}/${casename}_6.png
63vdump ${anImage_6}
64#