Adding of testing cases from subgroups 937 940 and 941 of CHL group
[occt.git] / tests / bugs / vis / bug21091_9
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 PGF 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}.pgf
42
43vexport ${aFile} PGF
44
45if { [file exists ${aFile}] } {
46 puts "Export to PGF file was done"
47 set filesize [file size ${aFile}]
48 puts $filesize
49 if { $filesize != 20398 } {
50 puts "Faulty : Export to PGF file was done but size of file is incorrect"
51 }
52 } else {
53 puts "Faulty : Export to PGF file was not done"
54 }