0025574: gp_YawPitchRoll Euler Angle computation gives wrong results - warnings
[occt.git] / tests / bugs / vis / bug24622
CommitLineData
f376ac72 1puts "============"
2puts "CR24622"
3puts "============"
4puts ""
5
6##############################################################################
7# Test for mapping Image_PixMap on AIS_TexturedShape / Graphic3d_TextureRoot
8##############################################################################
9
10set aV1 "Driver1/Viewer1/View1"
11set aV2 "Driver1/Viewer2/View1"
12vinit name=$aV1 l=32 t=32 w=400 h=400
13vinit name=$aV2 l=32 t=32 w=400 h=400
14vactivate $aV1
15vsettexturemode $aV1 2
16vclear
17
18OCC24622 1D
19vtop
20vfit
21
22checkcolor 100 200 0 0.5804 0.949
23
24if { $stat != 1 } {
25 puts "Error : the 1D texture color does not match at px (100, 200)!"
26}
27
28checkcolor 300 200 0.298 1.0 0.0
29
30if { $stat != 1 } {
31 puts "Error : the 1D texture color does not match at px (300, 200)!"
32}
33
34vactivate $aV2
35vsettexturemode $aV2 2
36vclear
37
38OCC24622 2D
39vtop
40vfit
41
42checkcolor 200 100 0 0.5804 0.949
43
44if { $stat != 1 } {
45 puts "Error : the 2D texture color does not match at px (200, 100)!"
46}
47
48checkcolor 200 300 0.298 1.0 0.0
49
50if { $stat != 1 } {
51 puts "Error : the 2D texture color does not match at px (200, 300)!"
52}
53
54set only_screen 1