0026321: Crash in BRepMesh_FastDiscret::Add
[occt.git] / tests / bugs / vis / bug21091_9
... / ...
CommitLineData
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 PGF format
9
10vfont add [locate_data_file DejaVuSans.ttf] SansFont
11
12vinit
13vtrihedron trihedron
14
15vpoint p1 -300 -300 -300
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 SansFont
17
18vpoint p2 -300 -300 -100
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 SansFont
20
21vpoint p3 -100 -100 -300
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 SansFont
23
24vpoint p4 -100 -100 -100
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 SansFont
26
27
28vpoint p5 -300 -100 -300
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 SansFont
30
31vpoint p6 -100 -300 -300
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 SansFont
33
34vpoint p7 -300 -100 -100
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 SansFont
36
37vpoint p8 -100 -300 -100
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 SansFont
39
40vaxis ax1 100 100 100 100 100 0
41
42box a 110 110 110 200 200 200
43vdisplay a
44
45file delete -force ${imagedir}/${test_image}.pgf
46set aFile ${imagedir}/${test_image}.pgf
47
48vexport ${aFile} PGF
49
50if { [string compare $tcl_platform(platform) "windows"] != 0 } {
51 set refsize 20438
52} else {
53 set refsize 20810
54}
55
56if { [file exists ${aFile}] } {
57 puts "Export to PGF file was done"
58 set filesize [file size ${aFile}]
59 if { $filesize != $refsize } {
60 puts "Error: Export to PGF file was done but size of file is incorrect (refsize = $refsize, current = $filesize)."
61 puts "Error: Compare content of resulting PGF file with reference."
62 puts "Error: Update refsize if it's necessary."
63 }
64} else {
65 puts "Faulty : Export to PGF file was not done"
66}
67
68checkview -screenshot -3d -path ${imagedir}/${test_image}.png