Files
OCCT/tests/vselect/bugs/bug1164_2
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

29 lines
514 B
Plaintext

puts "============"
puts "Verify vfit -selected works correctly for MeshVS_Mesh with transformation"
puts "============"
puts ""
pload MODELING VISUALIZATION STL
vclear
vinit View1
meshfromstl m [locate_data_file bearing.stl]
vfit
vlocation m -setLocation 500 0 0
vfit
vzoom 0.5
vsetdispmode m 2
vselmode m 8 1
vselect 200 200
vfit -selected
if { [vreadpixel 200 200 rgb name] == "BLACK" } {
puts "Error: mesh should be visible after vfit -selected with transformation"
}
vdump $imagedir/${casename}.png