0024224: Suspicious logics in changing clipping planes at OpenGl_Structure
[occt.git] / tests / bugs / vis / bug5988
CommitLineData
3bea4c16 1puts "============"
2puts "OCC5988"
3puts "============"
4puts ""
5#######################################################################
6# A textured shape (AIS_TextureShape) becomes black if we display an AIS_PlaneTrihedron with it
7#######################################################################
8
9set BugNumber OCC5988
10
11vinit
12vclear
13box box 100 100 100
14vdisplay box
15vfit
16puts "display box"
17
18set x 200
19set y 200
20checkcolor $x $y 0 0 0
21
22puts "display trihedron"
23vtrihedron vtr
24
25puts "display textured box"
5d1833ef 26vtexture box [locate_data_file OCC5988_2d_floor.rgb]
3bea4c16 27
28set x 200
29set y 200
30decho off
31if [catch { QAGetPixelColor $x $y 0 0 0 } res] {
32 puts "box is not black - OK"
33 puts "OK ${BugNumber}"
34} else {
35 puts "box is black - Faulty"
36 puts "Faulty ${BugNumber}"
37}
38decho on
39
40set only_screen 1
41