673cf4e3 |
1 | puts "============" |
2 | puts "CR26680" |
3 | puts "============" |
4 | puts "" |
5 | |
6 | ########################################################################################## |
7 | puts "Visualization - Changed behavior of mesh visualization and selection in OMF sample" |
8 | ########################################################################################## |
9 | |
10 | pload VISUALIZATION XDE |
11 | |
12 | vinit |
13 | meshfromstl m [locate_data_file bug26680.stl] |
14 | meshcolors m elem2 1 |
15 | |
16 | vselmode 0 1 |
17 | |
18 | vmoveto 200 200 |
f9ba5c4d |
19 | if {[vreadpixel 197 257 rgb name] != "CYAN1"} { |
673cf4e3 |
20 | puts "ERROR: presentation for dynamic highlight of the object is wrong!" |
21 | } |
22 | vmoveto 0 0 |
f9ba5c4d |
23 | if {[vreadpixel 197 257 rgb name] != "BLUE2"} { |
673cf4e3 |
24 | puts "ERROR: the object is not unhighlighted after dynamic highlight!" |
25 | } |
26 | |
27 | vselect 200 200 |
f9ba5c4d |
28 | if {[vreadpixel 197 257 rgb name] != "GRAY93"} { |
673cf4e3 |
29 | puts "ERROR: presentation for selection highlight is wrong!" |
30 | } |
31 | vselect 0 0 |
f9ba5c4d |
32 | if {[vreadpixel 197 257 rgb name] != "BLUE2"} { |
673cf4e3 |
33 | puts "ERROR: the object is not unhighlighted after selection highlight!" |
34 | } |
35 | |
5747059b |
36 | checkview -screenshot -3d -path ${imagedir}/${test_image}.png |