0030182: Visualization, Image_AlienPixMap - support reading encoded image from memory...
[occt.git] / tests / bugs / vis / bug26721
CommitLineData
b4006117 1puts "============"
2puts "CR26721"
3puts "============"
4puts ""
5
6##########################################################################################
7puts "Visualization - selection highlight of selected face is broken"
8##########################################################################################
9
10pload VISUALIZATION MODELING
11
12box b 1 1 1
13vinit
14vdisplay b
15vfit
16
17# select box in 0 selection mode
18vselect 200 200
19
20vselmode 4 1
21# select box's face
22vselect 200 300
23
24# check if highlight is correct:
25# 1. check if other edges of the box are not highlighted
26if {[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
30if {[vreadpixel 204 301 name] != "GRAY80 1"} {
31 puts "ERROR: the face selected is not highlighted with selection color!"
32}
33
5747059b 34checkview -screenshot -3d -path ${imagedir}/${test_image}.png