3 puts "Draw 2D objects."
7 vfont add [locate_data_file DejaVuSans.ttf] SansFont
13 # display polyline in overlay
14 text2brep tcc "Center" -font SansFont -height 30
15 vdisplay tcc -2d center -osd
16 polyline lcc -50 -50 0 -50 50 0 50 50 0 50 0 0 0 -50 0 -50 -50 0
17 vdisplay lcc -2d center -overlay
19 # display polyline in overlay in the bottom left corner of the view
20 text2brep tbl "Bottom-Left" -font SansFont -height 30
21 vdisplay tbl -2d bottomLeft 5 5 -osd
22 polyline lbl 0 0 0 0 100 0 100 100 0 100 50 0 50 0 0 0 0 0
23 vdisplay lbl -2d bottomLeft 3 3 -overlay
25 # display polyline in overlay in the top left corner of the view
26 text2brep ttl "Top-Left" -font SansFont -height 30 -pos -27 0 0
27 vdisplay ttl -2d topLeft 30 30 -osd
28 polyline ltl 0 -100 0 0 0 0 100 0 0 100 -50 0 50 -100 0 0 -100 0
29 vdisplay ltl -2d topLeft 3 3 -overlay
31 # display polyline in overlay in the top right corner of the view
32 text2brep ttr "Top-Right" -font SansFont -height 30 -pos -100 0 0
33 vdisplay ttr -2d topRight 30 30 -osd
34 polyline ltr -100 -100 0 -100 0 0 0 0 0 0 -50 0 -50 -100 0 -100 -100 0
35 vdisplay ltr -2d topRight 3 3 -overlay
37 # display polyline in overlay in the bottom right corner of the view
38 text2brep tbr "Bottom-Right" -font SansFont -height 30 -pos -165 0 0
39 vdisplay tbr -2d bottomRight 5 5 -osd
40 polyline lbr -100 0 0 -100 100 0 0 100 0 0 50 0 -50 0 0 -100 0 0
41 vdisplay lbr -2d bottomRight 3 3 -overlay
43 vdump ${imagedir}/${casename}.png