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