0023400: Triangulation of thin ring contains gap
[occt.git] / tests / bugs / vis / bug1629
CommitLineData
7faaccfd 1puts "TODO OCC11111 ALL: Error : Colors are not equal in default coordinate and in the near coordinates too"
2
3puts "================"
4puts "OCC1629"
5puts "OCC2707"
6puts "================"
7puts ""
8#######################################################################################
9# Viewer is always updated on closing local contexts
10#######################################################################################
7faaccfd 11
12box b1 10 10 10
13box b2 50 50 50 10 10 10
14vinit
15vdisplay b1 b2
16vfit
17
18# box b2
19set x1 321
20set y1 120
21
22set x2 336
23set y2 145
24
25set x3 367
26set y3 144
27
28# box b1
29set x4 44
30set y4 314
31
32set x5 72
33set y5 314
34
35set Selection_R 0.8
36set Selection_G 0.8
37set Selection_B 0.8
38
39#QASetChoiceMode EDGE ON
40vselmode 2 1
41
42set BeforeNbSelected [vnbselected]
43
44vselect 0 0 1
45
46vselect ${x1} ${y1} 1
47vselect ${x2} ${y2} 1
48vselect ${x3} ${y3} 1
49vselect ${x4} ${y4} 1
50vselect ${x5} ${y5} 1
51
52set AfterNbSelected [vnbselected]
53
54checkcolor ${x1} ${y1} ${Selection_R} ${Selection_G} ${Selection_B}
55checkcolor ${x2} ${y2} ${Selection_R} ${Selection_G} ${Selection_B}
56checkcolor ${x3} ${y3} ${Selection_R} ${Selection_G} ${Selection_B}
57checkcolor ${x4} ${y4} ${Selection_R} ${Selection_G} ${Selection_B}
58checkcolor ${x5} ${y5} ${Selection_R} ${Selection_G} ${Selection_B}
59
60if {${BeforeNbSelected} == 0} {
61 puts "OCC1629: OK (case 6: before selection)"
62} else {
63 puts "OCC1629: Error (case 6: before selection)"
64}
65
66if {${AfterNbSelected} == 5} {
67 puts "OCC1629: OK (case 7: after selection)"
68} else {
69 puts "OCC1629: Error (case 7: after selection)"
70}
71
72vselmode 0 1
73
74#
75puts "NOTES:"
76puts ""
77puts "Viewer is not updated on closing local context,"
78puts "but we can not check it by automatic test!"
79puts ""
80puts "5 edges must be selected on the viewer,"
81puts "but must be CloseNbSelected = 0 !"
82puts ""
83#
84
85set CloseNbSelected [vnbselected]
86
87checkcolor ${x1} ${y1} ${Selection_R} ${Selection_G} ${Selection_B}
88checkcolor ${x2} ${y2} ${Selection_R} ${Selection_G} ${Selection_B}
89checkcolor ${x3} ${y3} ${Selection_R} ${Selection_G} ${Selection_B}
90checkcolor ${x4} ${y4} ${Selection_R} ${Selection_G} ${Selection_B}
91checkcolor ${x5} ${y5} ${Selection_R} ${Selection_G} ${Selection_B}
92
93if {${CloseNbSelected} == 0} {
94 puts "OCC1629: OK (case 13: after close local context)"
95} else {
96 puts "OCC1629: Error (case 13: after close local context)"
97}
98
99set only_screen 1