0026721: Visualization - selection highlight of selected face is broken
[occt.git] / tests / bugs / vis / bug26721
1 puts "============"
2 puts "CR26721"
3 puts "============"
4 puts ""
5
6 ##########################################################################################
7 puts "Visualization - selection highlight of selected face is broken"
8 ##########################################################################################
9
10 pload VISUALIZATION MODELING
11
12 box b 1 1 1
13 vinit
14 vdisplay b
15 vfit
16
17 # select box in 0 selection mode
18 vselect 200 200
19
20 vselmode 4 1
21 # select box's face
22 vselect 200 300
23
24 # check if highlight is correct:
25 # 1. check if other edges of the box are not highlighted
26 if {[vreadpixel 292 356 name] != "YELLOW 1"} {
27   puts "ERROR: the box is drawn with the color that isn't equal to default!"
28 }
29 # 2. check if previously selected face is highlighted with selection color
30 if {[vreadpixel 204 301 name] != "GRAY80 1"} {
31   puts "ERROR: the face selected is not highlighted with selection color!"
32 }
33
34 set only_screen 1