1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/tests/bugs/vis/bug24610
san aeb722e31a 0024610: Visualization, Visual3d_View::MinMaxValues() - skip erased objects while computing bounding box for Fit All operations
"vfit" takes into account erased objects

Visual3d_View::MinMaxValues() corrected to ignore hidden Graphic3d_Structure instances,
unused Graphic3d_StructureManager::MinMaxValues() removed.

Correction of test-case
2014-08-21 15:51:00 +04:00

25 lines
537 B
Plaintext

puts "============"
puts "OCC24610"
puts "============"
puts ""
#######################################################################
# Erased AIS object should not be taken into account by FitAll operation
#######################################################################
pload VISUALIZATION
vinit
box b1 200 200 200
vdisplay b1
vfit
box b2 2 2 2
vdisplay b2
set color_1 [vreadpixel 32 305]
verase b1
vfit
set color_2 [vreadpixel 32 305]
if {$color_1 == $color_2} {
puts "ERROR: OCC24610 is reproduced"
}
set only_screen 1