0025507: Visualization - the method V3d_View::Place() is incorrect
[occt.git] / tests / bugs / vis / bug232
CommitLineData
a87752f3 1puts "========"
2puts "OCC232"
3puts "Pick filter does NOT work for TopAbs_COMPSOLID topology"
4puts "========"
5
6vinit
7OCC232
8vfit
9
10# selected point of first CompSolid
11set x1 69
12set y1 204
13
14set x2 116
15set y2 231
16
17#set x3 160; set y3 257 - it's bad for lin,aki.
18set x3 159
19set y3 256
20
21# selected point of second CompSolid
22set x4 298
23set y4 76
24
25set x5 339
26set y5 100
27
28set x6 381
29set y6 124
30
31set Cyan_R 0
32set Cyan_G 1
33set Cyan_B 1
34
35set Yellow_R 1
36set Yellow_G 1
37set Yellow_B 0
38
39# There is not selection
40puts "There is not selection"
41catch {QAGetPixelColor $x1 $y1 $Yellow_R $Yellow_G $Yellow_B} result11
42catch {QAGetPixelColor $x2 $y2 $Yellow_R $Yellow_G $Yellow_B} result12
43catch {QAGetPixelColor $x3 $y3 $Yellow_R $Yellow_G $Yellow_B} result13
44catch {QAGetPixelColor $x4 $y4 $Yellow_R $Yellow_G $Yellow_B} result14
45catch {QAGetPixelColor $x5 $y5 $Yellow_R $Yellow_G $Yellow_B} result15
46catch {QAGetPixelColor $x6 $y6 $Yellow_R $Yellow_G $Yellow_B} result16
47
48# Move a mouse
49puts "Move a mouse"
4754e164 50vmoveto $x2 $y2
a87752f3 51
52# Second box of first CompSolid is selected
53puts "Second box of first CompSolid is selected"
54catch {QAGetPixelColor $x1 $y1 $Yellow_R $Yellow_G $Yellow_B} result21
55catch {QAGetPixelColor $x3 $y3 $Yellow_R $Yellow_G $Yellow_B} result22
56catch {QAGetPixelColor $x4 $y4 $Yellow_R $Yellow_G $Yellow_B} result23
57catch {QAGetPixelColor $x5 $y5 $Yellow_R $Yellow_G $Yellow_B} result24
58catch {QAGetPixelColor $x6 $y6 $Yellow_R $Yellow_G $Yellow_B} result25
59
d27ea0ef 60if { [array get env os_type] != "" } {
61 set os $env(os_type)
62}
63if { [string compare $os "windows"] != 0 } {
d27ea0ef 64 catch {QAGetPixelColor $x2 $y2 $Cyan_R $Cyan_G $Cyan_B} result31
65}
a87752f3 66
67set IsFaulty 0
68if { [regexp "Faulty" $result11] == 1 } {
69 set IsFaulty 1
70}
71if { [regexp "Faulty" $result12] == 1 } {
72 set IsFaulty 1
73}
74if { [regexp "Faulty" $result13] == 1 } {
75 set IsFaulty 1
76}
77if { [regexp "Faulty" $result14] == 1 } {
78 set IsFaulty 1
79}
80if { [regexp "Faulty" $result15] == 1 } {
81 set IsFaulty 1
82}
83if { [regexp "Faulty" $result16] == 1 } {
84 set IsFaulty 1
85}
86if { [regexp "Faulty" $result21] == 1 } {
87 set IsFaulty 1
88}
89if { [regexp "Faulty" $result22] == 1 } {
90 set IsFaulty 1
91}
92if { [regexp "Faulty" $result23] == 1 } {
93 set IsFaulty 1
94}
95if { [regexp "Faulty" $result24] == 1 } {
96 set IsFaulty 1
97}
98if { [regexp "Faulty" $result25] == 1 } {
99 set IsFaulty 1
100}
d27ea0ef 101
102if { [string compare $os "windows"] != 0 } {
103 if { [regexp "Faulty" $result31] == 1 } {
104 set IsFaulty 1
105 }
a87752f3 106}
107
108if {$IsFaulty != 0} {
109 puts "Error : OCC232"
110}
111
112set only_screen 1