1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/vis/bug27536
aba 91d9637224 0027536: Visualization - incorrect behavior of zoom persisted objects
1) Zoom persistence mode now fixes object in pixel coordinates and  is independent on view size

2) Used gp_GTrsf instead of gp_Trsf SelectMgr_ViewerSelector to store  Graphic3d_Mat4d

3) Zoom persisted objects changed behavior (become bigger) therefore test cases were updated according to new state.

4) Corrected scale for rectangular frustum

Updated test for manipulator
2016-06-09 12:29:09 +03:00

31 lines
690 B
Plaintext

puts "========"
puts "OCC27536"
puts "========"
puts ""
##################################################################
puts "Visualization - incorrect behavior of zoom persisted objects"
##################################################################
set anImage1 $imagedir/${casename}_1.png
set anImage2 $imagedir/${casename}_2.png
vinit
vclear
vaxo
box b -50 -50 -50 100 100 100
vdisplay b -trsfPers zoom -trsfPersPos 0 0 0 -dispmode 1
vdump $anImage1
vinit View2 w=200 h=400
vaxo
vfit
# Check that box was't resized in small view
if {[vreadpixel 165 200 name] != "DARKGOLDENROD3 1"} {
puts "ERROR: zoom persistent box is resized on view sizes changed!"
}
vdump $anImage2