1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/vis/bug26641
isk 1d92133e83 0026641: Visualization, TKOpenGl - handle correctly transformation persistence within perspective projection.
Add a new method AIS_InteractiveContext::SetTransformPersistence, which sets transform persistence to object and selection.
Add a new method SelectMgr_SelectionManager::UpdateSelection, which re-adds selectable object in BVHs in all viewer selectors.
Add a new method SelectMgr_ViewerSelector::MoveSelectableObject, which moves object from set of not transform persistence objects to set of transform persistence objects (or vice versa).
Add a new method Graphic3d_TransformUtils::Convert, which converts gp_Trsf to Graphic3d_Mat4.
Remove the method PrsMgr_PresentableObject::SetTransformPersistence(flag, point).
2016-07-07 14:30:18 +03:00

36 lines
828 B
Plaintext

puts "============"
puts "CR26641"
puts "============"
puts ""
##############################################################################################################
# 0026641: Visualization, TKOpenGl - handle correctly transformation persistence within perspective projection
##############################################################################################################
vinit
vclear
box b0 30 0 0 10 10 10
box b1 -30 -30 30 10 30 20
vdisplay b0
vdisplay b1
vfit
vdump ${imagedir}/${casename}_none_pers_ortho.png
vdisplay b1 -trsfPers zoom -trsfPersPos -30 -30 30
vfit
vdump ${imagedir}/${casename}_zoom_pers_ortho.png
vcamera -persp
vfit
vdump ${imagedir}/${casename}_zoom_pers_persp.png
vselect 30 70
if {[vnbselected] != 1} {
puts "ERROR: Transform persistence object is not selected!"
}