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/bug26209
vpa b586500b1e 0026209: Visualization - provide a method to fit view to the specific bounding box
Methods V3d_View::FitAll and NIS_View::FitAll3d now take arbitrary bounding box as a parameter;
Option -selected added to vfit command to fit only selected entities in Draw;
F key press now fits selected objects if any by default.
2015-05-21 14:12:15 +03:00

34 lines
669 B
Plaintext

puts "============"
puts "CR26209"
puts "============"
puts ""
##########################################################################################
puts "Visualization - provide a method to fit view to the specific bounding box"
##########################################################################################
pload VISUALIZATION MODELING
box b 1 1 1
vinit View1
vdisplay b
vfit
vselmode b 2 1
vselmode b 1 1
vselect 330 334
vfit -selected
checkcolor 330 334 0 0 0
checkcolor 330 131 0.8 0.8 0.8
vselect 0 0
vfit
vselect 29 104
vselect 204 2 1
vfit -selected
checkcolor 29 104 0 0 0
checkcolor 2 317 0.8 0.8 0.8
vdump ${imagedir}/${casename}.png