0029528: Visualization, TKOpenGl - allow defining sRGB textures
[occt.git] / tests / bugs / vis / bug27618
CommitLineData
fe76088c 1puts "# ==================================================================="
2puts "# 0027618: Visualization - selection returns entity overlapped by another entity on border cases"
3puts "# ==================================================================="
4puts ""
5
6pload MODELING VISUALIZATION
7set s 0.001
8box bb 0*$s 0*$s 0*$s 100*$s 100*$s 50*$s
9box bt 50*$s 50*$s 25*$s 20*$s 20*$s 40*$s
10vclear
11vinit View1
12vpoint p0 0*$s 0*$s 0*$s
13vpoint p1 0*$s 100*$s 50*$s
14vdisplay -dispMode 1 -highMode 1 bb bt
15vsetcolor bt RED
16vaxo
17vfit
18
19vpoint pp 245 -190 0
20vdisplay -2d topLeft -topmost pp
21vselmode pp 0 0
22vmoveto 245 190
23
ba00aab7 24if { [vreadpixel 235 140 rgb name] == "CYAN2" } { puts "Error: top should NOT be highlighted" }
25if { [vreadpixel 235 190 rgb name] != "CYAN2" } { puts "Error: bottom should be highlighted" }
fe76088c 26vseldump $imagedir/${casename}_sel_depth.png -type depth
27vseldump $imagedir/${casename}_sel_entity.png -type entity
28
29vcamera -persp
30
31vmoveto 0 0
32vmoveto 245 190
ba00aab7 33if { [vreadpixel 235 140 rgb name] == "CYAN2" } { puts "Error: top should NOT be highlighted" }
34if { [vreadpixel 235 190 rgb name] != "CYAN2" } { puts "Error: bottom should be highlighted" }
fe76088c 35
36vseldump $imagedir/${casename}_perps_sel_depth.png -type depth
37vseldump $imagedir/${casename}_persp_sel_entity.png -type entity