0027986: Visualization - AIS_InteractiveContext::SetLocation() does not update dynami...
[occt.git] / tests / bugs / vis / bug24564
CommitLineData
51f8f60c 1puts "============"
2puts "CR24564"
3puts "============"
4puts ""
5
6#######################################################################
7# Test for sensitivity of box located over AIS_Plane
8#######################################################################
9
10set aV "Driver1/Viewer1/View1"
11vinit name=$aV l=32 t=32 w=400 h=400
12vactivate $aV
13vclear
14
15puts "Testing box selection over the plane in orthogonal projection:"
16vpoint p1 0 0 0
17vpoint p2 1 0 0
18vpoint p3 0 1 0
19
20vplane pl1 p1 p2 p3 0
21box b 50 50 50
22vdisplay b
23vfit
24vtop
25
ccadc126 26vaspects -setwidth 5
28ee613b 27vmoveto 200 200
28if { "[vreadpixel 200 200 rgb name]" != "CYAN1" } {
51f8f60c 29 puts "Error : The box is not selectable!"
30}
31
32puts "Testing box selection over the plane in axonometry projection:"
33vaxo
34vfit
35
f751596e 36vmoveto 200 200
ccadc126 37if { "[vreadpixel 199 200 rgb name]" != "CYAN1" } {
51f8f60c 38 puts "Error : The box is not selectable!"
39}