0029395: Visualization, V3d_View - Grid disappears forever after enabling RayTracing
[occt.git] / tests / bugs / vis / bug25777
CommitLineData
27af3052 1puts "============"
2puts "OCC25777: Draw Harness, ViewerTest - make commands defining standard views to match their names"
3puts "============"
4puts ""
5
6pload MODELING VISUALIZATION
7
8box b0 -70 -70 -70 140 140 140
9
10# Top View
11text2brep top Top -height 30 -aspect bold -halign center -valign center -pos 0 30 70 -plane 0 0 1 1 0 0 -composite on
12explode top Sh
13prism ptop top 0 0 -10
14
15# Bottom View
16text2brep bottom Bottom -height 30 -aspect bold -halign center -valign center -pos 0 -30 -70 -plane 0 0 -1 1 0 0 -composite on
17explode bottom Sh
18prism pbottom bottom 0 0 10
19
20# Front View
21text2brep front Front -height 30 -aspect bold -halign left -valign top -pos -70 -70 65 -plane 0 -1 0 1 0 0 -composite on
22explode front Sh
23prism pfront front 0 10 0
24
25# Back View
26text2brep back Back -height 30 -aspect bold -halign left -valign bottom -pos 70 70 -60 -plane 0 1 0 -1 0 0 -composite on
27explode back Sh
28prism pback back 0 -10 0
29
30# Right View
31text2brep right Right -height 30 -aspect bold -halign left -valign top -pos 70 -60 65 -plane 1 0 0 0 1 0 -composite on
32explode right Sh
33prism pright right -10 0 0
34
35# Left View
36text2brep left Left -height 30 -aspect bold -halign left -valign bottom -pos -70 60 -60 -plane -1 0 0 0 -1 0 -composite on
37explode left Sh
38prism pleft left 10 0 0
39
40# Cut operations
41bcut cutbox b0 ptop
42bcut cutbox cutbox pbottom
43bcut cutbox cutbox pfront
44bcut cutbox cutbox pback
45bcut cutbox cutbox pleft
46bcut cutbox cutbox pright
47
48vclear
49vclose all
50vinit
51
52vtrihedron tr
53vdisplay cutbox
54
55vfit
56
57# Axo View
58vaxo
59vdump $imagedir/${casename}_new_0_axo.png
60
61axo
62fit
63xwd $imagedir/${casename}_old_0_axo.png
64
65vsetdispmode 1
66vmoveto 200 200
67
68# Front View
69vfront
70vdump $imagedir/${casename}_new_1_front.png
71
72front
73fit
74xwd $imagedir/${casename}_old_1_front.png
75
76# Back View
77vback
78vdump $imagedir/${casename}_new_2_back.png
79
80back
81fit
82xwd $imagedir/${casename}_old_2_back.png
83
84# Right View
85vright
86vdump $imagedir/${casename}_new_3_right.png
87
88right
89fit
90xwd $imagedir/${casename}_old_3_right.png
91
92# Left View
93vleft
94vdump $imagedir/${casename}_new_4_left.png
95
96left
97fit
98xwd $imagedir/${casename}_old_4_left.png
99
100# Top View
101vtop
102vdump $imagedir/${casename}_new_5_top.png
103
104top
105fit
106xwd $imagedir/${casename}_old_5_top.png
107
108# Bottom View
109vbottom
110vdump $imagedir/${casename}_new_6_bottom.png
111
112bottom
113fit
114xwd $imagedir/${casename}_old_6_bottom.png