File: bug11615

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-- 896 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 "OCC11615"
puts "============"
puts ""
######################################################
# Anisotropic scaling in 3D view
######################################################

set BugNumber OCC11615

box b 10 10 10
vinit
vdisplay b
vfit
vscale 1 1 1

set x1 [list 165 340 70]
set y1 [list 384 283 79]
vaspects -setwidth 5
puts ""
for {set i 0} {$i < 3} {incr i} {
   set x_coord [lindex ${x1} $i]
   set y_coord [lindex ${y1} $i]
   if {  "[vreadpixel $x_coord $y_coord rgb name]" != "YELLOW"  } {
     puts "Error : color is not yellow"
   }
}

vscale 0.5 1.5 0.7
vfit

set x2 [list 80 390 25]
set y2 [list 390 218 167]

puts ""
for {set i 0} {$i < 3} {incr i} {
   set x_coord [lindex ${x2} $i]
   set y_coord [lindex ${y2} $i]
   if {  "[vreadpixel $x_coord $y_coord rgb name]" != "YELLOW"  } {
     puts "Error : color is not yellow"
   }
}

set only_screen 1