0032155: Tests - remove broken command OCC280
[occt.git] / tests / bugs / vis / bug25400
CommitLineData
a0c20252 1puts "========"
2puts "OCC25400"
3puts "========"
4puts ""
5###################################################################################################
6# Visualization, TKOpenGl - Structure disappears if assigned a non-default Z layer
7###################################################################################################
8
9box b 1 2 3
10vinit
11vdisplay b
0e3025bc 12vrenderparams -frustumculling on
a0c20252 13vfit
14
15vdump $imagedir/${casename}_default_layer.png
16
17# 1. Test a non-default Z layer:
18# the object should not disappear from the screen
19# due to wrong frustum culling operation
20
21vzlayer add
22vobjzlayer set b 1
23# vfit is used to redraw the view, the box disappeared after this due to the issue 25400
24vfit
25
26vdump $imagedir/${casename}_new_layer.png
27
28vzlayer del 1
29# vfit is used to redraw the view, the textured box appeared again after this
30vfit
31
32vdump $imagedir/${casename}_after_delete_layer.png
33
34# 2. Test a non-default display priority value:
35# the object should not disappear from the screen
36# due to wrong frustum culling operation
37
38vpriority b
39vpriority b 6
40
41vdump $imagedir/${casename}_new_priority.png
42
5747059b 43checkview -screenshot -3d -path ${imagedir}/${test_image}.png