55c838140837ccfe7ee977b79375609b5a8e5157
[occt.git] / tests / bugs / vis / bug26149
1 puts "==========="
2 puts "0026149: Visualization - depth buffer should not be written within Z-layers without Graphic3d_ZLayerDepthWrite flag"
3 puts "Check that objects drawn in Graphic3d_ZLayerId_BotOSD layer do not overlap objects in Graphic3d_ZLayerId_Default layer."
4 puts "==========="
5
6 pload MODELING VISUALIZATION
7 vinit View1
8 vclear
9 vaxo
10
11 text2brep tcc "Center" Times-Roman 30
12 vdisplay  tcc -2d -underlay
13 polyline  lcc -50 -50 0 -50 50 0 50 50 0 50 0 0 0 -50 0 -50 -50 0
14 vdisplay  lcc -2d -underlay
15
16 text2brep tbl "Bottom-Left" Times-Roman 30
17 vdisplay  tbl -2d -trsfPersPos -1 -1 5 -underlay
18 polyline  lbl 0 0 0 0 100 0 100 100 0 100 50 0 50 0 0 0 0 0
19 vdisplay  lbl -2d -trsfPersPos -1 -1 3 -underlay
20
21 text2brep ttl "Top-Left" Times-Roman 30 x=-27 y=0
22 vdisplay  ttl -2d -trsfPersPos -1 1 30 -underlay
23 polyline  ltl 0 -100 0 0 0 0 100 0 0 100 -50 0 50 -100 0 0 -100 0
24 vdisplay  ltl -2d -trsfPersPos -1 1 3  -underlay
25
26 text2brep ttr "Top-Right" Times-Roman 30 x=-100 y=0
27 vdisplay  ttr -2d -trsfPersPos 1 1 30 -underlay
28 polyline  ltr -100 -100 0 -100 0 0 0 0 0 0 -50 0 -50 -100 0 -100 -100 0
29 vdisplay  ltr -2d -trsfPersPos 1 1 3  -underlay
30
31 text2brep tbr "Bottom-Right" Times-Roman 30 x=-165 y=0
32 vdisplay  tbr -2d -trsfPersPos 1 -1 5 -underlay
33 polyline  lbr -100 0 0 -100 100 0 0 100 0 0 50 0 -50 0 0 -100 0 0
34 vdisplay  lbr -2d -trsfPersPos 1 -1 3 -underlay
35
36 box b 1 2 3
37 vdisplay b
38 vfit
39 vsetdispmode b 1
40
41 vdump ${imagedir}/${casename}.png