mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-26 10:19:45 +03:00
- BVH tree in the target Z layer was not updated when OpenGl_Structure was moved to another Z layer. - vpriority DRAW command added to test how BVH tree is updated when display priority is changed - Test case for Z layers and display priorities added Handle -noupdate argument within vpriority command
44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
puts "========"
|
|
puts "OCC25400"
|
|
puts "========"
|
|
puts ""
|
|
###################################################################################################
|
|
# Visualization, TKOpenGl - Structure disappears if assigned a non-default Z layer
|
|
###################################################################################################
|
|
|
|
box b 1 2 3
|
|
vinit
|
|
vdisplay b
|
|
vfrustumculling 1
|
|
vfit
|
|
|
|
vdump $imagedir/${casename}_default_layer.png
|
|
|
|
# 1. Test a non-default Z layer:
|
|
# the object should not disappear from the screen
|
|
# due to wrong frustum culling operation
|
|
|
|
vzlayer add
|
|
vobjzlayer set b 1
|
|
# vfit is used to redraw the view, the box disappeared after this due to the issue 25400
|
|
vfit
|
|
|
|
vdump $imagedir/${casename}_new_layer.png
|
|
|
|
vzlayer del 1
|
|
# vfit is used to redraw the view, the textured box appeared again after this
|
|
vfit
|
|
|
|
vdump $imagedir/${casename}_after_delete_layer.png
|
|
|
|
# 2. Test a non-default display priority value:
|
|
# the object should not disappear from the screen
|
|
# due to wrong frustum culling operation
|
|
|
|
vpriority b
|
|
vpriority b 6
|
|
|
|
vdump $imagedir/${casename}_new_priority.png
|
|
|
|
set only_screen 1
|