File: bug21091_3

package info (click to toggle)
oce 0.18.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 301,548 kB
  • sloc: cpp: 1,190,609; ansic: 67,225; sh: 11,630; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 342; xml: 292; perl: 37
file content (44 lines) | stat: -rw-r--r-- 1,012 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
puts "============"
puts "OCC21091"
puts "OCC21450"
puts "============"
puts ""
#vinit
#vexport
#vexport full_file_path {PS | EPS | TEX | PDF | SVG | PGF } : exports the view to a vector file of a given format
#

pload XSDRAW
vinit

meshfromstl m [locate_data_file shape.stl]

meshtext m

vsetdispmode m 34

file delete -force ${imagedir}/${test_image}.pdf
set aFile ${imagedir}/${test_image}.pdf

vexport ${aFile} PDF

if { [string compare $tcl_platform(platform) "windows"] != 0 } {
   set refsize 144401
} else {
   set refsize 153993
}

if { [file exists ${aFile}] } {
   puts "Export to PDF file was done"
   set filesize [file size ${aFile}]
   if { $filesize != $refsize } {
      puts "Error: Export to PDF file was done but size of file is incorrect (refsize = $refsize, current = $filesize)."
	  puts "Error: Compare content of resulting PDF file with reference."
	  puts "Error: Update refsize if it's necessary."
   }
} else {
   puts "Faulty : Export to PDF file was not done"
}

set only_screen 1