0029528: Visualization, TKOpenGl - allow defining sRGB textures
[occt.git] / tests / bugs / vis / bug28527
CommitLineData
e21fec81 1puts "============"
2puts "0028527: Visualization, AIS_InteractiveContext - custom selection presentation is never removed from View"
3puts "============"
4puts ""
5
6pload MODELING XDE VISUALIZATION
7vclear
8vclose ALL
9vinit View1
10box b -100 0 0 10 20 30
11meshfromstl m [locate_data_file OMF6391_box.stl]
12
13vfit
14vsetdispmode m 2
15vselmode m 8 1
16vselect 0 0 409 409 0 409
17verase m
18
19vdisplay -dispMode 1 -highMode 1 b
20vfit
ba00aab7 21if { [vreadpixel 165 400 rgb name] != "DARKGOLDENROD" } { puts "Error: fit all produces incorrect result after Erase" }
e21fec81 22vdump $::imagedir/${::casename}_1.png
23
24verase b
25vdisplay m
26vfit
27vselmode m 8 1
28vselect 0 0 409 409 0 409
29vremove m
30
31vdisplay -dispMode 1 -highMode 1 b
32vfit
ba00aab7 33if { [vreadpixel 165 400 rgb name] != "DARKGOLDENROD" } { puts "Error: fit all produces incorrect result after Remove" }
e21fec81 34vdump $::imagedir/${::casename}_2.png