File: bug24622

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 (54 lines) | stat: -rw-r--r-- 1,111 bytes parent folder | download | duplicates (5)
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
45
46
47
48
49
50
51
52
53
54
puts "============"
puts "CR24622"
puts "============"
puts ""

##############################################################################
#  Test for mapping Image_PixMap on AIS_TexturedShape / Graphic3d_TextureRoot
##############################################################################

set aV1 "Driver1/Viewer1/View1"
set aV2 "Driver1/Viewer2/View1"
vinit name=$aV1 l=32 t=32 w=400 h=400
vinit name=$aV2 l=32 t=32 w=400 h=400
vactivate $aV1
vsettexturemode $aV1 2
vclear

OCC24622 1D
vtop
vfit

checkcolor 100 200 0 0.5804 0.949

if { $stat != 1 } {
  puts "Error : the 1D texture color does not match at px (100, 200)!"
}

checkcolor 300 200 0.298 1.0 0.0

if { $stat != 1 } {
  puts "Error : the 1D texture color does not match at px (300, 200)!"
}

vactivate $aV2
vsettexturemode $aV2 2
vclear

OCC24622 2D
vtop
vfit

checkcolor 200 100 0 0.5804 0.949

if { $stat != 1 } {
  puts "Error : the 2D texture color does not match at px (200, 100)!"
}

checkcolor 200 300 0.298 1.0 0.0

if { $stat != 1 } {
  puts "Error : the 2D texture color does not match at px (200, 300)!"
}

set only_screen 1