0024564: Select3D_SensitiveFace gives inaccurate picking depth for AIS_Plane (interio...
[occt.git] / tests / bugs / vis / bug24420
CommitLineData
9e8804b6 1puts "============"
2puts "CR24420"
3puts "============"
4puts ""
5
6#######################################################################
7# Test for type of sensitivity of AIS_Plane
8#######################################################################
9
10set aV "Driver1/Viewer1/View1"
11vinit name=$aV l=32 t=32 w=400 h=400
12vactivate $aV
13vclear
14
15vpoint p1 0 0 0
16vpoint p2 1 0 0
17vpoint p3 0 1 0
18
19puts "Testing Select3D_TOS_INTERIOR type of sensitivity:"
20vplane pl1 p1 p2 p3 0
21vfit
22
23vmoveto 200 200
24checkcolor 395 200 0 1 1
25
26if { $stat != 1 } {
27 puts "Error : Select3D_SensitiveFace does not work properly with type of sensitivity Select3D_TOS_INTERIOR!"
28}
29
30verase pl1
31
32puts "Testing Select3D_TOS_BOUNDARY type of sensitivity:"
33
34vplane pl2 p1 p2 p3 1
35vfit
36
37vmoveto 200 200
38checkcolor 395 200 0.5 0.8 0.9
39
40if { $stat != 1 } {
41 puts "Error : Select3D_SensitiveFace does not work properly with type of sensitivity Select3D_TOS_BOUNDARY!"
42}
43
44vmoveto 395 200
45checkcolor 395 200 0 1 1
46
47if { $stat != 1 } {
48 puts "Error : Select3D_SensitiveFace does not work properly with type of sensitivity Select3D_TOS_BOUNDARY!"
49}