File: bug2883_2

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 (37 lines) | stat: -rw-r--r-- 876 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
puts "=========="
puts "OCC2883"
puts "=========="
puts ""
########################################################################
# It is impossible to set material, color and transparency to compound
########################################################################

set FilePath_v1 ${imagedir}/bug2883_2_v1.png
set FilePath_v2 ${imagedir}/bug2883_2_v2.png

file delete -force ${FilePath_v1}
file delete -force ${FilePath_v2}

box b1 0 0 0 1 2 3
box b2 4 0 0 3 1 2
vinit drv1/v1/v1
vsetdispmode 1
vdisplay b1 b2
vfit
vinit drv1/v2/v1
vsetdispmode 1
vdisplay b1 b2
vfit
vsetcolor b1 RED
vactivate drv1/v1/v1
vdump ${FilePath_v1}
vactivate drv1/v2/v1
vdump ${FilePath_v2}
set info [diffimage ${FilePath_v1} ${FilePath_v2} 0 0 0]
if { $info != 0 } {
  puts "Error: images v1 and v2 are different"
} else {
  puts "OK: images v1 and v2 are similar"
}

set only_screen 1