Files
OCCT/tests/vselect/bugs/bug1164_1
T
Winfried Holzapfel 1b0c828bdc Visualization - Include transform of shape in sub-owner bounding box (#1164)
- Apply `SelectMgr_SelectableObject` transformation when computing `BndBoxOfSelected()` for selected sub-owners.
- Add Draw Harness regression test for `MeshVS_Mesh` vertex selection with a transformation.
- Add Draw Harness regression test for transformed `TopoDS_Shape` face selection to ensure existing behavior remains correct.
2026-03-27 11:11:06 +00:00

24 lines
423 B
Plaintext

puts "============"
puts "Verify vfit -selected works correctly for a primitive TopoDS_Shape with transformation"
puts "============"
puts ""
pload MODELING VISUALIZATION
box b 100 200 300
vinit View1
vdisplay b -dispMode 1
vlocation b -location 500 0 0
vfit
vzoom 0.5
vselmode b FACE 1
vselect 250 125
vfit -selected
if { [vreadpixel 250 250 rgb name] == "BLACK" } {
puts "Error: face should be in the middle"
}