0029528: Visualization, TKOpenGl - allow defining sRGB textures
[occt.git] / tests / bugs / vis / bug5990
1 puts "================"
2 puts "OCC5990"
3 puts "================"
4 puts ""
5 #######################################################################################
6 # SetColor does not change color of wireframe entities in shading mode
7 ######################################################################################
8
9 set BugNumber OCC5990
10
11 set x1 162
12 set y1 159
13 set x2 204
14 set y2 269
15 set x3 348
16 set y3 238
17
18 set KUB_R 0.00
19 set KUB_G 0.00
20 set KUB_B 0.83
21
22 set LINE_R 0.00
23 set LINE_G 0.00
24 set LINE_B 1.00
25
26
27 box b1 10 10 10
28 vertex v1 20 0 0
29 vertex v2 20 0 10
30 vertex v3 30 0 0
31 vertex v4 30 0 10
32 vertex v5 30 10 10
33 edge e1 v1 v2
34 edge e2 v3 v4
35 edge e3 v4 v5
36 compound e2 e3 c1
37 vinit
38 vdisplay b1 e1 c1
39 vsetdispmode 1
40 vfit
41 vsetcolor b1 BLUE
42 vsetcolor e1 BLUE
43 vsetcolor c1 BLUE
44
45 checkcolor ${x1} ${y1} ${KUB_R} ${KUB_G} ${KUB_B}
46 checkcolor ${x2} ${y2} ${LINE_R} ${LINE_G} ${LINE_B}
47 checkcolor ${x3} ${y3} ${LINE_R} ${LINE_G} ${LINE_B}
48
49 checkview -screenshot -3d -path ${imagedir}/${test_image}.png