0024564: Select3D_SensitiveFace gives inaccurate picking depth for AIS_Plane (interio...
[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
26vmoveto 199 200
27checkcolor 199 200 0 1 1
28
29if { $stat != 1 } {
30 puts "Error : The box is not selectable!"
31}
32
33puts "Testing box selection over the plane in axonometry projection:"
34vaxo
35vfit
36
37vmoveto 199 200
38checkcolor 199 200 0 1 1
39
40if { $stat != 1 } {
41 puts "Error : The box is not selectable!"
42}