Modification due to behavior changes after integration for issues CR26138 and CR24923
[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
16vdrawtext OpenCascade -300 -300 -300 000 255 000 0 0 000 0 15 1 Courier
17vpoint p2 -300 -300 -100
18vdrawtext OpenCascade -300 -300 -100 000 255 000 0 0 000 0 15 1 Courier
19vpoint p3 -100 -100 -300
20vdrawtext OpenCascade -100 -100 -300 000 255 000 0 0 000 0 15 1 Courier
21vpoint p4 -100 -100 -100
22vdrawtext OpenCascade -100 -100 -100 000 255 000 0 0 000 0 15 1 Courier
23
24
25vpoint p5 -300 -100 -300
26vdrawtext OpenCascade -300 -100 -300 000 255 000 0 0 000 0 15 1 Courier
27vpoint p6 -100 -300 -300
28vdrawtext OpenCascade -100 -300 -300 000 255 000 0 0 000 0 15 1 Courier
29vpoint p7 -300 -100 -100
30vdrawtext OpenCascade -300 -100 -100 000 255 000 0 0 000 0 15 1 Courier
31vpoint p8 -100 -300 -100
32vdrawtext OpenCascade -100 -300 -100 000 255 000 0 0 000 0 15 1 Courier
33
34vaxis ax1 100 100 100 100 100 0
35
36box a 110 110 110 200 200 200
37vdisplay a
38
39set aFile $imagedir/${test_image}.tex
40
41vexport ${aFile} TEX
42
43if { [file exists ${aFile}] } {
44 puts "Export to TEX file was done"
45 set filesize [file size ${aFile}]
46 puts "Size of TEX file = $filesize"
0c4ca3bd 47 if { $filesize > 1500 } {
48 puts "Faulty : Export to TEX file was done but size of file is incorrect"
49 }
50} else {
51 puts "Faulty : Export to TEX file was not done"
52}