0024564: Select3D_SensitiveFace gives inaccurate picking depth for AIS_Plane (interio...
[occt.git] / tests / bugs / vis / bug24396
CommitLineData
9f37b47d 1puts "============"
2puts "CR24396"
3puts "============"
4puts ""
5#######################################################################
6# "vselmode" - disable auto loading of objects into Local Context
7#######################################################################
8
9set trihedron_axis_pick_x 29
10set trihedron_axis_pick_y 56
11
12set trihedron_axis_check_x 29
13set trihedron_axis_check_y 79
14
15set trihedron_point_pick_x 29
16set trihedron_point_pick_y 305
17
18set trihedron_point_check_x 24
19set trihedron_point_check_y 305
20
21vinit View1
22vclear
23vaxo
24vtrihedron tri
25box b 10 10 10
26vdisplay b
27vselmode b 1 1
28vfit
29
30# --------------------------------------------------- #
31# check that there is no selection of trihedron axis #
32# --------------------------------------------------- #
33
34vmoveto $trihedron_axis_pick_x $trihedron_axis_pick_y
35
36checkcolor $trihedron_axis_pick_x $trihedron_axis_pick_y 0 0 0
37
38if { $stat != 1 } {
39 puts "Error : The trihedron should not be highlighted."
40}
41
42vselmode b 0 0
43vselmode 0 0
44verase b
45vselmode 1 1
46
47# ----------------------------------------------- #
48# check that selection of trihedron point is ok #
49# ----------------------------------------------- #
50
51vmoveto $trihedron_point_pick_x $trihedron_point_pick_y
52
53checkcolor $trihedron_point_check_x $trihedron_point_check_y 0 1 1
54
55if { $stat != 1 } {
56 puts "Error : The trihedron point highlight is incorrect."
57}
58
59# --------------------------------------------------------- #
60# check that there is still no selection of trihedron axis #
61# --------------------------------------------------------- #
62
63vmoveto $trihedron_axis_pick_x $trihedron_axis_pick_y
64
65checkcolor $trihedron_axis_pick_x $trihedron_axis_pick_y 0 0 0
66
67if { $stat != 1 } {
68 puts "Error : The trihedron should not be highlighted."
69}
70
71set only_screen 1