0025687: Visualization, XCAF - eliminate visual artifacts at the edges of faces
[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
ccadc126 30if { "[vreadpixel $x $y rgb name]" != "BLACK" } {
3bea4c16 31 puts "box is not black - OK"
32 puts "OK ${BugNumber}"
33} else {
34 puts "box is black - Faulty"
35 puts "Faulty ${BugNumber}"
36}
3bea4c16 37
38set only_screen 1
39