0027958: Visualization, AIS_Trihedron - add shaded presentation option
[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 vfont add [locate_data_file DejaVuSans.ttf] SansFont
7
8 pload MODELING VISUALIZATION
9 vinit View1
10 vclear
11 vaxo
12
13 text2brep tcc "Center" -font SansFont -height 30
14 vdisplay  tcc -2d center -underlay
15 polyline  lcc -50 -50 0 -50 50 0 50 50 0 50 0 0 0 -50 0 -50 -50 0
16 vdisplay  lcc -2d center -underlay
17
18 text2brep tbl "Bottom-Left" -font SansFont -height 30
19 vdisplay  tbl -2d bottomLeft 5 5 -underlay
20 polyline  lbl 0 0 0 0 100 0 100 100 0 100 50 0 50 0 0 0 0 0
21 vdisplay  lbl -2d bottomLeft 3 3 -underlay
22
23 text2brep ttl "Top-Left" -font SansFont -height 30 -pos -27 0 0
24 vdisplay  ttl -2d topLeft 30 30 -underlay
25 polyline  ltl 0 -100 0 0 0 0 100 0 0 100 -50 0 50 -100 0 0 -100 0
26 vdisplay  ltl -2d topLeft  3  3 -underlay
27
28 text2brep ttr "Top-Right" -font SansFont -height 30 -pos -100 0 0
29 vdisplay  ttr -2d topRight 30 30 -underlay
30 polyline  ltr -100 -100 0 -100 0 0 0 0 0 0 -50 0 -50 -100 0 -100 -100 0
31 vdisplay  ltr -2d topRight  3  3 -underlay
32
33 text2brep tbr "Bottom-Right" -font SansFont -height 30 -pos -165 0 0
34 vdisplay  tbr -2d bottomRight 5 5 -underlay
35 polyline  lbr -100 0 0 -100 100 0 0 100 0 0 50 0 -50 0 0 -100 0 0
36 vdisplay  lbr -2d bottomRight 3 3 -underlay
37
38 box b 1 2 3
39 vdisplay b
40 vfit
41 vsetdispmode b 1
42
43 vdump ${imagedir}/${casename}.png