0024130: Implementing ray tracing visualization core
[occt.git] / tests / bugs / vis / bug349_1
1 puts "========"
2 puts "OCC349"
3 puts "========"
4 puts ""
5 puts "2. Fitall with hidden line removal algorithm works incorrect in the perspective view"
6
7 vinit
8 box b 100 900 300
9 vdisplay b
10
11 OCC280 1 1
12
13 vfit
14
15 set x1 165
16 set y1 109
17
18 set x2 380
19 set y2 26
20
21 set x3 215
22 set y3 130
23
24 set x4 31
25 set y4 199
26
27 set x5 188
28 set y5 254
29
30 set x6 351
31 set y6 177
32
33 set x7 216
34 set y7 287
35
36 set x8 22
37 set y8 373
38
39 set x9 2
40 set y9 249
41
42 set x10 345
43 set y10 92
44
45 set x11 393
46 set y11 109
47
48 set x12 52
49 set y12 284
50
51 set Black_R 0
52 set Black_G 0
53 set Black_B 0
54
55 set Yellow_R 1
56 set Yellow_G 1
57 set Yellow_B 0
58
59 #
60 #              ___________2________________
61 #             /|                          /|
62 #            / |                         / |
63 #           /  |                        /  |
64 #          /   |                       /   |
65 #         /    |                      /    |
66 #        1     |                     3     |
67 #       /      |                    /      |
68 #      /       |                   /       |
69 #     /        |                  /        |
70 #    /         |                 /         |
71 #   ----------------4------------          |
72 #   |          |                |          |
73 #   |          |                |          |
74 #   |          |                |          |
75 #   |         10                |         11
76 #   |          |                |          |
77 #   |          |                |          |
78 #   |          |                |          |
79 #   |          |                |          |
80 #   |          |                |          |
81 #   9          |               12          |
82 #   |          |___________6____|__________|
83 #   |         /                 |         /
84 #   |        /                  |        /
85 #   |       /                   |       /
86 #   |      /                    |      /
87 #   |     5                     |     /
88 #   |    /                      |    7
89 #   |   /                       |   /
90 #   |  /                        |  /
91 #   | /                         | /
92 #   |/                          |/
93 #   |--------------8------------|
94 #
95 #
96
97 checkcolor ${x1}  ${y1}  ${Yellow_R} ${Yellow_G} ${Yellow_B}
98 checkcolor ${x2}  ${y2}  ${Yellow_R} ${Yellow_G} ${Yellow_B}
99 checkcolor ${x3}  ${y3}  ${Yellow_R} ${Yellow_G} ${Yellow_B}
100 checkcolor ${x4}  ${y4}  ${Yellow_R} ${Yellow_G} ${Yellow_B}
101 checkcolor ${x7}  ${y7}  ${Yellow_R} ${Yellow_G} ${Yellow_B}
102 checkcolor ${x8}  ${y8}  ${Yellow_R} ${Yellow_G} ${Yellow_B}
103 checkcolor ${x9}  ${y9}  ${Yellow_R} ${Yellow_G} ${Yellow_B}
104 checkcolor ${x11} ${y11} ${Yellow_R} ${Yellow_G} ${Yellow_B}
105 checkcolor ${x12} ${y12} ${Yellow_R} ${Yellow_G} ${Yellow_B}
106 checkcolor ${x5}  ${y5}  ${Black_R} ${Black_G} ${Black_B}
107 checkcolor ${x6}  ${y6}  ${Black_R} ${Black_G} ${Black_B}
108 checkcolor ${x10} ${y10} ${Black_R} ${Black_G} ${Black_B}
109
110 set only_screen 0