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