0032155: Tests - remove broken command OCC280
[occt.git] / tests / bugs / vis / bug31412
CommitLineData
2ff1d580 1puts "============="
2puts "0031412: Visualization - entity behind is returned as topmost at the edges"
3puts "============="
4
5pload VISUALIZATION
6box b1 250 250 900 1000 1000 200
7box b2 1000 1000 1000
8vdisplay -dispMode 1 b1 b2
9vaspects b1 -setWidth 3 -setColor ORANGE
10vaspects b2 -setWidth 3 -setColor MATRABLUE
11vrenderparams -shadingModel UNLIT
12
13vviewparams -proj 0 0 1
14vfit
15vmoveto 325 100
16if { [vreadpixel 325 400 rgb name] == "CYAN" } { puts "ERROR: back box is misdetected" }
17vpoint p1 -2d -nosel 325 100
18vdump $imagedir/${casename}_proj_Z.png
19vremove p1
20
21vviewparams -proj 0 1 0
22vfit
23vmoveto 200 58
24if { [vreadpixel 400 58 rgb name] == "CYAN" } { puts "ERROR: back box is misdetected" }
25vpoint p2 -2d -nosel 200 58
26vdump $imagedir/${casename}_proj_Y.png
27vremove p2
28
29vviewparams -proj 1 0 0
30vfit
31vmoveto 200 58
32if { [vreadpixel 50 58 rgb name] == "CYAN" } { puts "ERROR: back box is misdetected" }
33vpoint p3 -2d -nosel 200 58
34vdump $imagedir/${casename}_proj_X.png
35vremove p3