0026106: BRepMesh - revision of data model
[occt.git] / tests / bugs / vis / bug25400
1 puts "========"
2 puts "OCC25400"
3 puts "========"
4 puts ""
5 ###################################################################################################
6 #  Visualization, TKOpenGl - Structure disappears if assigned a non-default Z layer
7 ###################################################################################################
8
9 box b 1 2 3
10 vinit
11 vdisplay b
12 vfrustumculling 1
13 vfit
14
15 vdump $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
21 vzlayer add
22 vobjzlayer set b 1
23 # vfit is used to redraw the view, the box disappeared after this due to the issue 25400
24 vfit
25
26 vdump $imagedir/${casename}_new_layer.png
27
28 vzlayer del 1
29 # vfit is used to redraw the view, the textured box appeared again after this
30 vfit
31
32 vdump $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
38 vpriority b
39 vpriority b 6
40
41 vdump $imagedir/${casename}_new_priority.png
42
43 checkview -screenshot -3d -path ${imagedir}/${test_image}.png