mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
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).
36 lines
828 B
Plaintext
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!"
|
|
}
|