f376ac72 |
1 | puts "============" |
2 | puts "CR24622" |
3 | puts "============" |
4 | puts "" |
5 | |
6 | ############################################################################## |
7 | # Test for mapping Image_PixMap on AIS_TexturedShape / Graphic3d_TextureRoot |
8 | ############################################################################## |
9 | |
10 | set aV1 "Driver1/Viewer1/View1" |
11 | set aV2 "Driver1/Viewer2/View1" |
12 | vinit name=$aV1 l=32 t=32 w=400 h=400 |
13 | vinit name=$aV2 l=32 t=32 w=400 h=400 |
14 | vactivate $aV1 |
f376ac72 |
15 | vclear |
16 | |
17 | OCC24622 1D |
18 | vtop |
19 | vfit |
20 | |
be375252 |
21 | set aColor [vreadpixel 100 200 rgb name] |
22 | if { "$aColor" != "CYAN1" } { |
23 | puts "Error: the 1D texture color does not match at px (100, 200)!" |
f376ac72 |
24 | } |
25 | |
be375252 |
26 | set aColor [vreadpixel 300 200 rgb name] |
27 | if { "$aColor" != "CHARTREUSE" } { |
28 | puts "Error: the 1D texture color does not match at px (300, 200)!" |
f376ac72 |
29 | } |
30 | |
31 | vactivate $aV2 |
f376ac72 |
32 | vclear |
33 | |
34 | OCC24622 2D |
35 | vtop |
36 | vfit |
37 | |
be375252 |
38 | set aColor [vreadpixel 100 200 rgb name] |
39 | if { "$aColor" != "DARKGOLDENROD1" } { |
40 | puts "Error: the 2D texture color does not match at px (200, 100)!" |
f376ac72 |
41 | } |
42 | |
be375252 |
43 | set aColor [vreadpixel 200 300 rgb name] |
44 | if { "$aColor" != "CHARTREUSE" } { |
45 | puts "Error: the 2D texture color does not match at px (200, 300)!" |
f376ac72 |
46 | } |
47 | |
5747059b |
48 | checkview -screenshot -3d -path ${imagedir}/${test_image}.png |