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