0022785: Draw Harness - add possibility to remove a text drawn by the command vdrawtext
[occt.git] / tests / bugs / vis / bug21091_7
CommitLineData
a8676008 1puts "============"
2puts "OCC21091"
3puts "OCC21450"
4puts "============"
5puts ""
6#vexport
7#vexport full_file_path {PS | EPS | TEX | PDF | SVG | PGF } : exports the view to a vector file of a given format
8#Testing export to TEX format
9
10vinit
11set only_screen 1
12
13vtrihedron trihedron
14
15vpoint p1 -300 -300 -300
29e2c6d2 16vdrawtext OC0 OpenCascade -pos -300 -300 -300 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier
17
a8676008 18vpoint p2 -300 -300 -100
29e2c6d2 19vdrawtext OC1 OpenCascade -pos -300 -300 -100 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier
20
a8676008 21vpoint p3 -100 -100 -300
29e2c6d2 22vdrawtext OC2 OpenCascade -pos -100 -100 -300 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier
23
a8676008 24vpoint p4 -100 -100 -100
29e2c6d2 25vdrawtext OC3 OpenCascade -pos -100 -100 -100 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier
a8676008 26
27
28vpoint p5 -300 -100 -300
29e2c6d2 29vdrawtext OC4 OpenCascade -pos -300 -100 -300 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier
30
a8676008 31vpoint p6 -100 -300 -300
29e2c6d2 32vdrawtext OC5 OpenCascade -pos -100 -300 -300 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier
33
a8676008 34vpoint p7 -300 -100 -100
29e2c6d2 35vdrawtext OC6 OpenCascade -pos -300 -100 -100 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier
36
a8676008 37vpoint p8 -100 -300 -100
29e2c6d2 38vdrawtext OC7 OpenCascade -pos -100 -300 -100 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier
a8676008 39
40vaxis ax1 100 100 100 100 100 0
41
42box a 110 110 110 200 200 200
43vdisplay a
44
45set aFile $imagedir/${test_image}.tex
46
47vexport ${aFile} TEX
48
49if { [file exists ${aFile}] } {
50 puts "Export to TEX file was done"
51 set filesize [file size ${aFile}]
52 puts "Size of TEX file = $filesize"
0c4ca3bd 53 if { $filesize > 1500 } {
54 puts "Faulty : Export to TEX file was done but size of file is incorrect"
55 }
56} else {
57 puts "Faulty : Export to TEX file was not done"
58}