mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0024996: Visualization - newly displayed objects are clipped until first
camera movement AutoZFit operation now may be applied on Visual3d_View level. Visual3d_View tracks Graphic3d_Structure updates and call AutoZFit within Visual3d_View::Redraw if necessary. In order to get AutoZFit functionality on Visual3d_View level ZfitAll method moved from V3d_View into Graphic3d_Camera. AutoZFit method and AutoZFitMode flag now part of Visual3d_View. Test case for issue CR24996
This commit is contained in:
23
tests/bugs/vis/bug24996
Normal file
23
tests/bugs/vis/bug24996
Normal file
@@ -0,0 +1,23 @@
|
||||
puts "============"
|
||||
puts "CR24996"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Visualization - newly displayed objects are clipped until first camera movement
|
||||
#######################################################################
|
||||
|
||||
box b1 0 0 0 1 2 3
|
||||
box b2 3 2 1 1 2 3
|
||||
box b3 5 -4 0 1 2 3
|
||||
|
||||
vinit
|
||||
vclear
|
||||
vaxo
|
||||
vsetdispmode 0
|
||||
vdisplay b1
|
||||
vfit
|
||||
vzoom 0.25
|
||||
vdisplay b2 b3
|
||||
|
||||
set anImage ${imagedir}/${casename}.png
|
||||
vdump ${anImage}
|
@@ -17,4 +17,4 @@ if { [catch { featperform prism result face face } ] != 0 } {
|
||||
puts "Error in featperform"
|
||||
}
|
||||
|
||||
set square 82351.1
|
||||
set square 103218
|
||||
|
Reference in New Issue
Block a user