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