Adding of testing cases from subgroups 937 940 and 941 of CHL group
[occt.git] / tests / bugs / vis / bug21091_5
CommitLineData
a8676008 1puts "TODO ?OCC11111 ALL: Faulty : Export to"
2
3puts "============"
4puts "OCC21091"
5puts "OCC21450"
6puts "============"
7puts ""
8#vexport
9#vexport full_file_path {PS | EPS | TEX | PDF | SVG | PGF } : exports the view to a vector file of a given format
10#Testing export to PS format
11
12vinit
13set only_screen 1
14
15vtrihedron trihedron
16
17vpoint p1 -300 -300 -300
18vdrawtext OpenCascade -300 -300 -300 000 255 000 0 0 000 0 15 1 Courier
19vpoint p2 -300 -300 -100
20vdrawtext OpenCascade -300 -300 -100 000 255 000 0 0 000 0 15 1 Courier
21vpoint p3 -100 -100 -300
22vdrawtext OpenCascade -100 -100 -300 000 255 000 0 0 000 0 15 1 Courier
23vpoint p4 -100 -100 -100
24vdrawtext OpenCascade -100 -100 -100 000 255 000 0 0 000 0 15 1 Courier
25
26
27vpoint p5 -300 -100 -300
28vdrawtext OpenCascade -300 -100 -300 000 255 000 0 0 000 0 15 1 Courier
29vpoint p6 -100 -300 -300
30vdrawtext OpenCascade -100 -300 -300 000 255 000 0 0 000 0 15 1 Courier
31vpoint p7 -300 -100 -100
32vdrawtext OpenCascade -300 -100 -100 000 255 000 0 0 000 0 15 1 Courier
33vpoint p8 -100 -300 -100
34vdrawtext OpenCascade -100 -300 -100 000 255 000 0 0 000 0 15 1 Courier
35
36vaxis ax1 100 100 100 100 100 0
37
38box a 110 110 110 200 200 200
39vdisplay a
40
41set aFile $imagedir/${test_image}.ps
42
43vexport ${aFile} PS
44
45if { [file exists ${aFile}] } {
46 puts "Export to PS format was done"
47 set filesize [file size ${aFile}]
48 if { $filesize != 10418 } {
49 puts "Faulty : Export to PS format was done but size of file is incorrect"
50 }
51} else {
52 puts "Faulty : Export to PS format was not done"
53}