0024413: Visualization - get rid of projection shift from orthographic camera definition
[occt.git] / tests / bugs / vis / bug349
1 puts "========"
2 puts "OCC349"
3 puts "1. Hidden line removal algorithm works incorrect in the perspective view"
4 puts "========"
5
6 vinit
7 box b 100 900 300
8 set 3dviewer 1
9 vdisplay b
10
11 OCC280 1 0
12
13 vfit
14
15 set x1 135
16 set y1 119
17
18 set x2 387
19 set y2 33
20
21 set x3 172
22 set y3 144
23
24 set x4 28
25 set y4 190
26
27 set x5 160
28 set y5 257
29
30 set x6 365
31 set y6 150
32
33 set x7 212
34 set y7 272
35
36 set x8 60
37 set y8 343
38
39 set x9 26
40 set y9 255
41
42 set x10 353
43 set y10 99
44
45 set x11 389
46 set y11 113
47
48 set x12 60
49 set y12 276
50
51 #
52 #              ___________2________________
53 #             /|                          /|
54 #            / |                         / |
55 #           /  |                        /  |
56 #          /   |                       /   |
57 #         /    |                      /    |
58 #        1     |                     3     |
59 #       /      |                    /      |
60 #      /       |                   /       |
61 #     /        |                  /        |
62 #    /         |                 /         |
63 #   ----------------4------------          |
64 #   |          |                |          |
65 #   |          |                |          |
66 #   |          |                |          |
67 #   |         10                |         11
68 #   |          |                |          |
69 #   |          |                |          |
70 #   |          |                |          |
71 #   |          |                |          |
72 #   |          |                |          |
73 #   9          |               12          |
74 #   |          |___________6____|__________|
75 #   |         /                 |         /
76 #   |        /                  |        /
77 #   |       /                   |       /
78 #   |      /                    |      /
79 #   |     5                     |     /
80 #   |    /                      |    7
81 #   |   /                       |   /
82 #   |  /                        |  /
83 #   | /                         | /
84 #   |/                          |/
85 #   |--------------8------------|
86 #
87 #
88
89 checkcolor ${x1} ${y1} 1 1 0
90 checkcolor ${x2} ${y2} 1 1 0
91 checkcolor ${x3} ${y3} 1 1 0
92 checkcolor ${x4} ${y4} 1 1 0
93 checkcolor ${x7} ${y7} 1 1 0
94 checkcolor ${x8} ${y8} 1 1 0
95 checkcolor ${x9} ${y9} 1 1 0
96 checkcolor ${x11} ${y11} 1 1 0
97 checkcolor ${x12} ${y12} 1 1 0
98 checkcolor ${x5} ${y5} 0 0 0
99 checkcolor ${x6} ${y6} 0 0 0
100 checkcolor ${x10} ${y10} 0 0 0
101
102 set only_screen 1