673cf4e3 |
1 | puts "============" |
ba00aab7 |
2 | puts "0026680: Visualization - Changed behavior of mesh visualization and selection in OMF sample" |
673cf4e3 |
3 | puts "============" |
4 | puts "" |
5 | |
673cf4e3 |
6 | pload VISUALIZATION XDE |
7 | |
ba00aab7 |
8 | vinit View1 |
673cf4e3 |
9 | meshfromstl m [locate_data_file bug26680.stl] |
10 | meshcolors m elem2 1 |
11 | |
12 | vselmode 0 1 |
13 | |
14 | vmoveto 200 200 |
ba00aab7 |
15 | if {[vreadpixel 197 257 rgb name] != "CYAN"} { puts "ERROR: presentation for dynamic highlight of the object is wrong!" } |
673cf4e3 |
16 | vmoveto 0 0 |
ba00aab7 |
17 | if {[vreadpixel 197 257 rgb name] != "BLUE"} { puts "ERROR: the object is not unhighlighted after dynamic highlight!" } |
673cf4e3 |
18 | |
19 | vselect 200 200 |
ba00aab7 |
20 | if {[vreadpixel 197 257 rgb name] != "GRAY86"} { puts "ERROR: presentation for selection highlight is wrong!" } |
673cf4e3 |
21 | vselect 0 0 |
ba00aab7 |
22 | if {[vreadpixel 197 257 rgb name] != "BLUE"} { puts "ERROR: the object is not unhighlighted after selection highlight!" } |
673cf4e3 |
23 | |
ba00aab7 |
24 | vdump ${imagedir}/${test_image}.png |